I've noticed some details in PDF files, such as thin lines, render differently depending on the Viewer:
- Preview (Apple)
- Adobe Acrobat Reader
Is there a way to save them in order to make them display in the same way on all viewers ?
thanks
I've noticed some details in PDF files, such as thin lines, render differently depending on the Viewer:
Is there a way to save them in order to make them display in the same way on all viewers ?
thanks
Saving as images is inefficient and a waste of space.
Make sure that your generated pdf files are embedding all of the elements required to display them correctly (embedded fonts are a major culprit for non-standard display)
Are the thin lines vector-based images, text, or bitmap-based images? It's possible that one of your viewers is anti-aliasing the lines, and the other is not.
The problem is this:
0
. This is defined to mean for the interpreter: "Use the thinnest line you can render for a given resolution." It is especially this instruction which makes different viewers render the same file differently.Of course you can convert your PDFs to images (TIFF, PNG, JPEG,...). But are you sure that each image viewer on all platforms will display your image the same way?
If you still want to convert your PDFs to images, you can use Ghostscript for the job. Here for converting to TIFF G4 format as multi-page TIFF:
gswin32c.exe ^
-sDEVICE=tiffg4 ^
-r1200x1200 ^
-o c:/path/to/output.tif ^
d:/path/to/input.pdf
If you want a TIFF per PDF page, use this:
gswin32c.exe ^
-sDEVICE=tiffg4 ^
-r1200x1200 ^
-o e:/path/to/output/input_page_%03d.tif ^
d:/path/to/input.pdf
If you want to convert your PDFs in such a way that thickens up very thin lines, you'll have to look into shelling out lots of money for a so-called PDF Preflight software. One of which I am aware is pdfToolbox4 by callassoftware.com. This product can batch-convert PDFs and change all so called hairlines to a minimum thickness (which in turn should make all viewers to display the files in a similar way). And of course, this product can do much, much more than just that: it is a professional tool used by printing professionals for preflighting printjobs.
Make sure the fonts are all setup correctly and embedded as well. There is a blog article explaining all about fonts at http://www.jpedal.org/PDFblog/?p=635