Penguin

Differences between current version and previous revision of CreatingPDFs.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 23 Last edited on Wednesday, August 10, 2005 12:42:03 pm by JohnMcPherson
Older page: version 22 Last edited on Tuesday, June 14, 2005 2:31:20 pm by JohnMcPherson Revert
@@ -25,12 +25,19 @@
 ---- 
 !!ps2pdf hints 
  
 * ps2pdf is really just a wrapper script that calls gs(1) with the correct options, such as -sDEVICE=pdfwrite (meaning to use the "pdfwrite" output device). Make sure you are using the most recent version of GNU ghostscript, since each version seems to improve greatly on previous versions. (Current version in debian testing at time of writing is 7.07). 
-* If you are trying to make a pdf from a postscript file that has a funny size (ie, using "gv" shows it is using the ! BoundingBox), use the __"-dEPSCrop"__ option. Otherwise it will default to landscape A4 and probably things wrong. Or you could try the ''epstopdf'' wrapper script (part of [LaTeX]). 
+* If you are trying to make a pdf from a postscript file that has a funny size (ie, using "gv" shows it is using the BoundingBox), use the __"-dEPSCrop"__ option. Otherwise it will default to landscape A4 and probably things wrong. Or you could try the ''epstopdf'' wrapper script (part of [LaTeX]). 
 * If your document is black-and-white/grayscale, you might be able to make use of some optimisations by adding __"-dProcessColorModel=/~DeviceGray"__ as a command-line option. 
 * You can add a -r''<n>'' option for the resolution... eg a low resolution like -r75 if you are only creating a PDF designed to be viewed on-screen. 
-* Apparently, the default options for ghostscript's "pdfwrite" device changed with ghostscript 7, and it now defaults to using DCT/[JPEG] compression on colour images, which isn't very good for screenshots or other low-res images. Add the __" -dColorImageFilter=/~FlateEncode -dAutoFilterColorImages=false" __ options to your ps2pdf/gs command. 
+* Apparently, the default options for ghostscript's "pdfwrite" device changed with ghostscript 7, and it now defaults to using DCT/[JPEG] compression on images, which isn't very good for screenshots or other low-res images. Add the  
+<pre>  
+ __-dColorImageFilter=/~FlateEncode -dAutoFilterColorImages=false__  
+</pre>  
+and/or  
+<pre>__-dGrayImageFilter=/~FlateEncode -dAutoFilterGrayImages=false__  
+</pre>  
+ options to your ps2pdf/gs command. 
 * You can join (ie concatenate) multiple PostScript and PDF files together, for example: 
 <verbatim> 
  gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \ 
  -sOutputFile=/tmp/merged.pdf file1.ps file2.pdf file3.pdf ...