Linux PDF/Postscript Optimizing
Posted
by Sheldon Ross
on Stack Overflow
See other posts from Stack Overflow
or by Sheldon Ross
Published on 2010-04-16T21:59:49Z
Indexed on
2010/04/16
22:03 UTC
Read the original article
Hit count: 485
So I have a report system built using Java and iText. PDF templates are created using Scribus. The Java code merges the data into the document using iText. The files are then copied over to a NFS share, and a BASH script prints them.
I use acroread to convert them to PS, then lpr the PS.
The FOSS application pdftops is horribly inefficient.
My main problem is that the PDF's generated using iText/Scribus are very large. And I've recently run into the problem where acroread pukes because it hits 4gb of mem usage on large (300+ pages) documents. (Adobe is painfully slow at updating stuff to 64 bit).
Now I can use Adobe reader on Windows, and use the Create Print PDF option or whatever its called, and it greatly(> 10x) reduces the size of the PDF(it removes alot of metadata about form fields and such it appears) and produces a PDF that is basically a Print image.
My question is does anyone know of a good solution/program for doing something similiar on Linux. Ideally, it would optimize the PDF, reduce size, and reduce PS complexity so the printer could print faster as it takes about 15-20 seconds a page to print right now.
© Stack Overflow or respective owner