Skip to content

a lib for reduce images size in pdf file

shunwatai/pedelf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pedelf

Simple program for trying to "compress" the size of images in the PDF file.

Used packages:

  • pdfcpu for extract & update the images
  • imaging for reduce the image size

Inpired by pdfcomprezzor

How it works

  1. Extract images from pdf
  2. Scale down the images and convert the images to jpg with lower quality
  3. Update the images back in pdf
  4. Export the results

Known issues

Only can shrink jpeg, png, gif in the PDF, other format like tiff, jpx etc. seems fail to handle by imaging

Example

cd examples/compress_pdfs_in_dir
go run main.go

Contributing

  • Please create issue if encounter issues
  • Feature requests

About

a lib for reduce images size in pdf file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages