|Published (Last):||13 November 2008|
|PDF File Size:||13.41 Mb|
|ePub File Size:||16.71 Mb|
|Price:||Free* [*Free Regsitration Required]|
If not, is it possible that the Ghostscript compression is so good that it will result in absolutely no loss in quality? Here's some additional options that you can pass when using pdfwrite as your device.
Another alternative is pdftk :. Some of the size optimizations that you observed may come from Ghostscript's cleaning up of unused objects, its recently acquired font optimization improvements do you use a very recent version of GS?!?
By default Ghostscript also will compress any object streams that have been uncompressed in the original file but this is a lossless compression. Read the manual. The large table in middle of this section gives an overview.
The link to the documentation given is for current HEAD of the development code and your actually used version may be different of course. Query your own Ghostscript for the detailed meaning of this setting. To give you a complete list of parameters which would specifically tell Ghostscript to employ as much of a passthrough mode as it possibly can to the input PDF by adding these parameters:.
Finally , as Chris Haas already hinted at: you can also use pdftk if you specifically do not want any of the optimizations that Ghostscript applies by default. I posted it because I couldn't find something that worked for me with a simple copy and paste. Learn more. Asked 8 years, 6 months ago. Active 1 month ago. Viewed 62k times. Running the command with a single file as input still results to a smaller size output file. Kurt Pfeifle Dimitris Baltas Dimitris Baltas 2, 3 3 gold badges 28 28 silver badges 24 24 bronze badges.
Active Oldest Votes. Chris Haas Chris Haas Thanks for recommending pdftk. For simple concatenation of PDF files it seems to be perfect. Jan-Philip Gehrcke Feb 13 '13 at It happened to me that I lost pages and had a 10x size increase with gs. Do the manipulations asked for on the commandline to the page contents in the internal format.
Write out a completely new PDF. You have two options to find out: Read the manual. Kurt Pfeifle Kurt Pfeifle CMCDragonkai: Yes you can. I haven't tested it, though. But if this doesn't work, it will be a bug.
Merging multiple PDFs into a single PDF with ghostscript
For other information, see the Ghostscript overview and, if necessary, how to install Ghostscript. This document describes how to use the command line Ghostscript client. Ghostscript is also used as a general engine inside other applications for viewing files for example. Please refer to the documentation for those applications for using Ghostscript in other contexts. The command line to invoke Ghostscript is essentially the same on all systems, although the name of the executable program itself may differ among systems.
Putting together PDF files
Ghostscript is a package that enables you to view or print PostScript and PDF files to other formats, or to convert those files to other formats. For example, you can compress the file, target it to an eBook reader, or encrypt it. See the Ghostscript documentation for more information. Using Ghostscript has its drawbacks, too. On top of that, some people may find typing long strings of options at the command line to be a bit of a chore.