bnanes / shrink-pdf Goto Github PK
View Code? Open in Web Editor NEWReduce PDF file size by applying jpeg compression to embedded images
License: MIT License
Reduce PDF file size by applying jpeg compression to embedded images
License: MIT License
Hi,
There is Peter Szabo's pdfsizeopt which works by applying various image lossless image compression techniques to the embedded images in the original PDF.
Is shrink-pdf
lossless? Can you provide some benchmarks/comparisons etc. against pdfsizeopt
?
Please sign your binaries so they will run in Mavericks
Thanks for this nice piece of sw.
I wish to comment that output seems much cleaner than ghostcript based solutions.
I believe that PDFBox based tools (I also tried PDFFlattener but I need a pure CMD based approach - with same good outcomes) provide better optimization, in the sense that for same size output resolution is better.
Just one comment. For my 1GByte pdf input I had to add -Xmx2048m otherwise the run fails.
By the way, could I ask you to have a view to https://github.com/cityssm/pdfFlattener
In my tests, for my PDFs, I get 25% smaller files with your SW than with the pdfFlattener for at my eye similar quality, but would like to know if your sw also removes any active content.
If not, could you have a view to cityssm/pdfFlattener#4
Perhaps you could contribute easily a pull request to introduce a no gui version in pdfFlattener, or perhaps to fork or create one... I would do myself, but I am really illeterate on these subjects, just a CMD user... I tried to understand PDFBox and I am really not knowing where to start...
Thanks in advance!
CT
This program has worked for me before but for some reason it is giving me rather strange output on these specific pdfs.
earth114_lect02.pdf
earth114_lect02_SHRUNK.pdf
I'm using the tool to compress lecture slides from all my past classes, so I don't have the source files. It has seemed to work fine for all my other classes.
There are two issues with the shrink-pdf.sh file in the pre-built app archive. It needs to have its executable bit set (not sure if this is possible in a zip file), and it needs to have unix line endings (i.e. LF instead of CR). Currently the user needs to make these two changes manually, which can be confusing for non-geeks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.