pdf-compressor

Compress pdf files right in browser
8,403 3
Install
npm install pdf-compressor
Latest Version:1.0.5
Vue:3
License:MIT
Last Updated:May 11, 2024
Links: GitHub  ·  npm
Maintainer: imedzhidov

PDF compressor

Compress pdf and img in browser.

Installation

npm i pdf-compressor
yarn add pdf-compressor
pnpm add pdf-compressor
bun add pdf-compressor

Usage

// just send to the function file and options (optional)
const compressedFile = await compressPDF(file, {
    quality: 0.98, // from 0 to 1
    scale: 1, // which times to scale from original size
});

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Authors

This project based on @tt-p's project, so thanks for the key idea

Related Packages

compress-sdk-plus

Browser-side media compression SDK supporting video and image compression

2,781 1
nuxt-compress

Runs gzip and brotli compression on static assets during Nuxt build

278,005 103
nuxt-precompress

Precompress files to gzip and brotli and serve them automatically

58,387 117
@yireen/squoosh-browser

An image compression tool run in browser while @squoosh/lib can not.

16,437 35
squoosh-browser-sense

An image compression tool run in browser while @squoosh/lib can not.

1,610 35

Version History

Version Released Vue License
1.0.5 ^3.4.27 MIT
1.0.4 ^3.4.27 MIT
1.0.3 ^3.4.27 MIT
1.0.2 ^3.4.27 MIT
1.0.1 ^3.4.27 MIT