{"id":19596389,"url":"https://github.com/henrixapp/pdfcomprezzor","last_synced_at":"2025-06-24T20:08:49.526Z","repository":{"id":44745293,"uuid":"297346546","full_name":"henrixapp/pdfcomprezzor","owner":"henrixapp","description":"Compress pdfs in browser, using pdfcpu.io","archived":false,"fork":false,"pushed_at":"2024-11-29T18:33:57.000Z","size":3389,"stargazers_count":14,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T15:49:23.012Z","etag":null,"topics":["compression","golang","pdf","wasm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henrixapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-09-21T13:23:02.000Z","updated_at":"2025-03-13T15:56:12.000Z","dependencies_parsed_at":"2025-04-27T15:47:02.484Z","dependency_job_id":null,"html_url":"https://github.com/henrixapp/pdfcomprezzor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/henrixapp/pdfcomprezzor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrixapp%2Fpdfcomprezzor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrixapp%2Fpdfcomprezzor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrixapp%2Fpdfcomprezzor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrixapp%2Fpdfcomprezzor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henrixapp","download_url":"https://codeload.github.com/henrixapp/pdfcomprezzor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrixapp%2Fpdfcomprezzor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261749216,"owners_count":23203990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compression","golang","pdf","wasm"],"created_at":"2024-11-11T08:53:28.152Z","updated_at":"2025-06-24T20:08:49.489Z","avatar_url":"https://github.com/henrixapp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdfcomprezzor\n\nSimple Wasm-Program to compress pdffiles with pictures in browser, based on pdfcpu. The programm replaces all images that are bigger than 1240x1754 are resized to this size and converted to JPG. This is done using pdfcpu. We decode, compress, delete and insert each embedded image. This reuses the object-id of the original object and thus replaces the image.\n\n## Build\n\n```\nGOOS=js GOARCH=wasm go build -o pdfcomprezzor.wasm \n```\n### Docker\nIf you want to try this project using docker, run the container by following these steps:\n\n```sh\nsudo docker build -t dockerized_pdf_comprezzor .\nsudo docker run -p 8081:80 dockerized_pdf_comprezzor\n```\nNow you can visit localhost:8081 to compress files.\n\n## API\n### using worker.js\n\nSee test.js\n\n## Running the example\nFirstly, you have to copy a version of wasm_exec.js to this project. \n`cp \"$(go env GOROOT)/misc/wasm/wasm_exec.js\" .` \n\n Serve the files with a server, that supports mime-type `application/wasm`\n\nNavigate to index.html and open a file, wait for compression...\n\nIf you select two files or more,  they will be merged.\n\nLicense: Apache 2.0\n\n(c) 2020-2022, Henrik Reinstädtler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrixapp%2Fpdfcomprezzor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenrixapp%2Fpdfcomprezzor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrixapp%2Fpdfcomprezzor/lists"}