Simple program for trying to "compress" the size of images in the PDF file.
Used packages:
Inpired by pdfcomprezzor
- Extract images from pdf
- Scale down the images and convert the images to jpg with lower quality
- Update the images back in pdf
- Export the results
Only can shrink jpeg, png, gif in the PDF, other format like tiff, jpx etc. seems fail to handle by imaging
cd examples/compress_pdfs_in_dir
go run main.go
- Please create issue if encounter issues
- Feature requests