Difference between revisions of "Ps2pdf"

From ArchWiki
Jump to: navigation, search
m (simplify wiki link)
m (fix heading levels per style guide)
Line 1: Line 1:
 
[[Category:Office]]
 
[[Category:Office]]
 
[[es:Ps2pdf]]
 
[[es:Ps2pdf]]
= Installation =
+
== Installation ==
 +
 
 
Ps2pdf is provided by {{Pkg|ghostscript}} which is available in the [[official repositories]].
 
Ps2pdf is provided by {{Pkg|ghostscript}} which is available in the [[official repositories]].
  
= How do I create a PDF from PS the easy way? =
+
== How do I create a PDF from PS the easy way? ==
 +
 
 
This page should help people who are asking themselves (maybe for the second, third or n-th time) this question and maybe found the answer once but never have written this somewhere or remembered correctly.
 
This page should help people who are asking themselves (maybe for the second, third or n-th time) this question and maybe found the answer once but never have written this somewhere or remembered correctly.
  
= ps2pdf =
+
== ps2pdf ==
 +
 
 
One command does it all:
 
One command does it all:
 
  ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true YourPSFile.ps
 
  ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true YourPSFile.ps
== Explanation ==
+
 
 +
=== Explanation ===
 +
 
 
* ps2pdf is the wrapper to ghostscript (ps2pdf is owned by ghostscript package)
 
* ps2pdf is the wrapper to ghostscript (ps2pdf is owned by ghostscript package)
 
* with -sPAPERSIZE=something you define the paper size. Wondering about valid PAPERSIZE values? See [http://ghostscript.com/doc/current/Use.htm#Known_paper_sizes here]
 
* with -sPAPERSIZE=something you define the paper size. Wondering about valid PAPERSIZE values? See [http://ghostscript.com/doc/current/Use.htm#Known_paper_sizes here]
Line 16: Line 21:
 
* -dEmbedAllFonts=true makes the fonts look always nice
 
* -dEmbedAllFonts=true makes the fonts look always nice
  
== Misconceptions ==
+
=== Misconceptions ===
 +
 
 
* you cannot choose the paper orientation in ps2pdf. If your input PS file is healthy, it already contains the orientation information. If you are trying to use an Encapsulated PS file, you will have problems, if it does not fit in the -sPAPERSIZE you specified, because EPS files usually do not contain paper orientation informaiton. a workaround is creating a new paper in ghostscript settings (call it e.g. "slide") and use it as -sPAPERSIZE=slide
 
* you cannot choose the paper orientation in ps2pdf. If your input PS file is healthy, it already contains the orientation information. If you are trying to use an Encapsulated PS file, you will have problems, if it does not fit in the -sPAPERSIZE you specified, because EPS files usually do not contain paper orientation informaiton. a workaround is creating a new paper in ghostscript settings (call it e.g. "slide") and use it as -sPAPERSIZE=slide

Revision as of 01:31, 20 March 2014

Installation

Ps2pdf is provided by ghostscript which is available in the official repositories.

How do I create a PDF from PS the easy way?

This page should help people who are asking themselves (maybe for the second, third or n-th time) this question and maybe found the answer once but never have written this somewhere or remembered correctly.

ps2pdf

One command does it all:

ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true YourPSFile.ps

Explanation

  • ps2pdf is the wrapper to ghostscript (ps2pdf is owned by ghostscript package)
  • with -sPAPERSIZE=something you define the paper size. Wondering about valid PAPERSIZE values? See here
  • -dOptimize=true let's the created PDF be optimised for loading
  • -dEmbedAllFonts=true makes the fonts look always nice

Misconceptions

  • you cannot choose the paper orientation in ps2pdf. If your input PS file is healthy, it already contains the orientation information. If you are trying to use an Encapsulated PS file, you will have problems, if it does not fit in the -sPAPERSIZE you specified, because EPS files usually do not contain paper orientation informaiton. a workaround is creating a new paper in ghostscript settings (call it e.g. "slide") and use it as -sPAPERSIZE=slide