{"id":22331059,"url":"https://github.com/rodrigobdz/pdfoptim","last_synced_at":"2025-07-29T19:33:02.557Z","repository":{"id":57321540,"uuid":"183014402","full_name":"rodrigobdz/pdfoptim","owner":"rodrigobdz","description":"Optimize file size of PDFs","archived":false,"fork":false,"pushed_at":"2019-04-23T17:25:57.000Z","size":22,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-29T02:59:19.974Z","etag":null,"topics":["generator-lnm","ghostscript","imageoptim","minification","nodejs","npm-package","optimization-tools","performance","yarn"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pdfoptim","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodrigobdz.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":null,"license":"license","code_of_conduct":"code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-23T12:52:02.000Z","updated_at":"2024-10-01T14:40:01.000Z","dependencies_parsed_at":"2022-08-25T22:41:36.051Z","dependency_job_id":null,"html_url":"https://github.com/rodrigobdz/pdfoptim","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigobdz%2Fpdfoptim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigobdz%2Fpdfoptim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigobdz%2Fpdfoptim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigobdz%2Fpdfoptim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodrigobdz","download_url":"https://codeload.github.com/rodrigobdz/pdfoptim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227744781,"owners_count":17813379,"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":["generator-lnm","ghostscript","imageoptim","minification","nodejs","npm-package","optimization-tools","performance","yarn"],"created_at":"2024-12-04T04:09:32.628Z","updated_at":"2024-12-04T04:09:33.224Z","avatar_url":"https://github.com/rodrigobdz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdfoptim [![Build Status](https://travis-ci.com/rodrigobdz/pdfoptim.svg?branch=master)](https://travis-ci.com/rodrigobdz/pdfoptim)\n\n\u003e Optimize file size of PDFs\n\n## Install\n\n```sh\n$ npm install pdfoptim\n```\n\n## Usage\n\n```js\nconst pdfoptim = require('pdfoptim');\n\npdfoptim('printer-manual.pdf');\n// Filesize difference -79.46% ✂️\n// Optimized version of printer-manual.pdf saved as optimized-1556039930343.pdf 🎉\n```\n\n## API\n\n### pdfoptim(filePath, [options])\n\n#### filePath\n\nType: `string`\n\nPath to PDF file to optimize.\n\n#### options\n\nType: `Object`\n\n##### outputFile\n\nType: `string`\u003cbr\u003e\nDefault: `optimized-{timestamp}.pdf`\n\nFilename for optimized PDF.\n\n## CLI\n\n```sh\n$ npm install --global pdfoptim\n```\n\n```sh\n$ pdfoptim --help\n\n  Usage\n    pdfoptim [filePath]\n\n  Options\n    --outputFile  File name for optimized PDF [Default: optimized-{timestamp}.pdf\n\n  Examples\n    $ pdfoptim essay.pdf\n    // Optimized PDF created with name optimized-[timestamp].pdf\n    $ pdfoptim -o optim-essay.pdf essay.pdf\n    // Optimized PDF created with name essay-optim.pdf\n```\n\n## Credits\n\n* [percentage-diff](https://github.com/rodrigobdz/percentage-diff) - Calculate percentage difference between two numbers\n* [generator-lnm](https://github.com/rodrigobdz/generator-lnm) - Awesome node module generator\n\n## License\n\n[MIT](license) © [Rodrigo Bermudez Schettino](https://rodrigobdz.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigobdz%2Fpdfoptim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigobdz%2Fpdfoptim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigobdz%2Fpdfoptim/lists"}