Difference between revisions of "PDF"
Jump to navigation
Jump to search
(Created page with "Category: Hacks Category: PDF == Reduce the size of a PDF file consisting of scanned images == It is wise to scan documents at the highest resolution possible as downsamp...") |
|||
Line 5: | Line 5: | ||
Assuming we have a PDF with images scanned at 600dpi and I want to downsample it to 150dpi and use JPEG compression at a ratio of 80% for sending it via mail. |
Assuming we have a PDF with images scanned at 600dpi and I want to downsample it to 150dpi and use JPEG compression at a ratio of 80% for sending it via mail. |
||
convert -density 150x150 -compression jpeg -quality 80 INPUT.pdf OUTPUT.pdf |
convert -density 150x150 -compression jpeg -quality 80 INPUT.pdf OUTPUT.pdf |
||
== Convert images to PDF documents == |
|||
Assuming you have a few images laying around that need to be converted to a PDF with a paper size in DIN A4. |
|||
convert -page A4 -density 150x150 -compress jpeg -quality 80 INPUT01.tif INPUT02.tif INPUT03.tif OUTPUT.pdf |
Revision as of 20:19, 25 April 2012
Reduce the size of a PDF file consisting of scanned images
It is wise to scan documents at the highest resolution possible as downsampling can be done at any point. The fastest way I found so far the tools of the ImageMagick suite or with GhostScript.
Assuming we have a PDF with images scanned at 600dpi and I want to downsample it to 150dpi and use JPEG compression at a ratio of 80% for sending it via mail.
convert -density 150x150 -compression jpeg -quality 80 INPUT.pdf OUTPUT.pdf
Convert images to PDF documents
Assuming you have a few images laying around that need to be converted to a PDF with a paper size in DIN A4.
convert -page A4 -density 150x150 -compress jpeg -quality 80 INPUT01.tif INPUT02.tif INPUT03.tif OUTPUT.pdf