Postscript

1. Using epilogue.ps to rotate pages
Q: Somebody could explain me how to use and write the files epilogue.ps and prologue.ps with adobe distiller to carry out a rotation of 90 degrees of the whole of a document postscript (or only of one page) [Q136]
2. Postscript fonts
Q: What fonts should exist in a postscript device? [Q146]
3. Conditional postscript and PDF
Q: I am looking to to embed postscript code into a pdf so that on a particular printing device x will happen and on another device y will happen.

1. Using epilogue.ps to rotate pages

Q: Somebody could explain me how to use and write the files epilogue.ps and prologue.ps with adobe distiller to carry out a rotation of 90 degrees of the whole of a document postscript (or only of one page) [Q136]

A: Try this for your prologue.ps file:

 
<<
   /BeginPage {   pop               % Throw away the showpage count
                  612 0 translate   % translate by the page width
                                    %   (your width may differ from
                                    %   mine, of course.)
                  90 rotate         % Rotate by 90 degrees
               }
>> setpagedevice
 

Note that this won't work on a Level 1 printer. (setpagedevice was added in Level 2.)

John Deubert (john@acumentraining.com) [A207]

A: Or better, to be independent of the page size of the document being processed, use the following:

  
<<   /EndPage   { exch pop 2 ne     { [{ThisPage} <> /PUT pdfmark true}     {false}ifelse   } >>setpagedevice 
 

Helge Blischke (H.Blischke@srz-berlin.de) [A210]

2. Postscript fonts

Q: What fonts should exist in a postscript device? [Q146]

A: There are 35 official PostScript fonts (they should be resident in the firmware of a postscript-capable printer):

  1. AvantGarde-Book

  2. AvantGarde-BookOblique

  3. AvantGarde-Demi

  4. AvantGarde-DemiOblique

  5. Bookman-Light

  6. Bookman-LightItalic

  7. Bookman-Demi

  8. Bookman-DemiItalic

  9. Courier

  10. Courier-Oblique

  11. Courier-Bold

  12. Courier-BoldOblique

  13. Helvetica

  14. Helvetica-Oblique

  15. Helvetica-Bold

  16. Helvetica-BoldOblique

  17. Helvetica-Narrow

  18. Helvetica-Narrow-Oblique

  19. Helvetica-Narrow-Bold

  20. Helvetica-Narrow-BoldOblique

  21. NewCenturySchlbk-Roman

  22. NewCenturySchlbk-Italic

  23. NewCenturySchlbk-Bold

  24. NewCenturySchlbk-BoldItalic

  25. Palatino-Roman

  26. Palatino-Italic

  27. Palatino-Bold

  28. Palatino-BoldItalic

  29. Symbol

  30. Times-Roman

  31. Times-Italic

  32. Times-Bold

  33. Times-BoldItalic

  34. ZapfChancery-MediumItalic

  35. ZapfDingbats

Jim Driscoll (jdriscoll@trentu.ca) [A226]

A: That may be true about resident fonts but most fonts can be written to postscript. It is just math The base fonts are just resident so everyone does not have to shuffle so much. However - again Any graphic designer worth their salt will supply ALL the fonts they use in a file to the printer. DON"T count on anyone else. One of the magics of PDF is the embedding of fonts.

MSD (mikedodds1@home.com) [A227]

3. Conditional postscript and PDF

Q: I am looking to to embed postscript code into a pdf so that on a particular printing device x will happen and on another device y will happen.

In essence I would like the embeded code to determine if the printer is in fact capable of producing my pdf file the way I planned ie. postscript level, trapped, cmyk, blah blah blah.

Can such code be put into the postscript file before I distill it? [Q158]

A: Yes. But it won't help one iota because all the questions you ask will be answered by Distiller (level 3, no trapping, CMYK) and the single PDF generated will be based on that one answer.

You cannot embed conditional PostScript into a PDF.

Aandi Inston (quite@dial.pipex.com) [A243]