Skip to content

medzhidov/pdf-compressor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF compressor

Compress pdf right 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

About

Compress pdf right in browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.9%
  • HTML 3.1%