I am looking for someone to develop a custom script for me to optimize PDFs on a Linux server (Ubuntu).
I routinely get large color PDF books which I use for proofreading. However, they are often very slow to scroll when being viewed in a desktop program or web browser. I would like a script on my Ubuntu server which I can run to optimize these PDFs so that they load and scroll more quickly when being viewed in a browser or PDF viewer.
I've already played around with imagemagick, ghost script, and pdftk but have had trouble getting them to convert at a reasonable speed. I am still open to using one of these but ONLY if you can meet the requirements and essential test below.
- Runs as an Ubuntu command-line script or program
- Easy to install (it is OK to have a few package dependencies, or even be a thin wrapper for programs that perform this well)
- Uses a simple API, such as convertpdf.sh optimize -input mybook.pdf -output newbook.pdf
- Converts a PDF to grayscale and/or black&white and reduce the file size
- Downsamples the resolution of text and images and reduce the file size
- Performs any additional optimizations you can think of, which will boost performance of scrolling in a PDF viewer.
- OCR and text searchability *must* remain unaffected.
- Fast conversion performance: e.g., conversion rate of 1 second or less per page
- Scrolling speed between the original PDF and your optimized PDF *must* show an improvement of at least 25% in PDF scrolling speed when using the native PDF viewer in Google Chrome web browser.
I have four (4) PDF books that your script *must* optimize to speed up scrolling performance and follow all of the above requirements.
These four books are located in the GDrive folder here: https://drive.google.com/folderview?id=0B27-rxnuLaIGR2FOdUE0b1dQUzg&usp=sharing