pdfclean(1) pretty print, decompress and garbage collect PDF files


pdfclean [options] input.pdf [output.pdf] [pages]


pdfclean pretty prints and rewrites the contents of a PDF file. If no output file is specified, the new file will be written to "out.pdf" in the current directory.


-p password
Use the specified password if the file is encrypted.
Garbage collect objects that have no references from other objects. Give the option twice to renumber all objects and compact the cross reference table. Give it three times to merge and reuse duplicate objects.
Decompress streams. This will make the output file larger, but provides easy access for reading and editing the contents with a text editor.
Comma separated list of ranges to clean.


MuPDF was written by Tor Andersson <[email protected]>. MuPDF is Copyright 2006-2010 Artifex Software, Inc.