Difference between revisions of "Ghostscript"

From ArchWiki
Jump to navigation Jump to search
(flag for merging)
(content doesn't warrant article, redirect to PDF, PS and DjVu#Engines)
Tag: New redirect
Line 1: Line 1:
#redirect [[PDF, PS and DjVu#Engines]]
{{Merge|PDF, PS and DjVu|New article.|ArchWiki:Requests#PDF, PS and DjVu}}
[[Wikipedia:Ghostscript|Ghostscript]] is an interpreter for PostScript and PDF.
== Installation ==
[[Install]] the {{Pkg|ghostscript}} package.
== Usage ==
See {{man|1|gs}}.
=== ps2pdf ===
''ps2pdf'' is a wrapper around ghostscript to convert PostScript to PDF:
$ ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true YourPSFile.ps
* with {{ic|1=-sPAPERSIZE=something}} you define the paper size. For valid PAPERSIZE values, see [http://ghostscript.com/doc/current/Use.htm#Known_paper_sizes].
* {{ic|1=-dOptimize=true}} let's the created PDF be optimised for loading
* {{ic|1=-dEmbedAllFonts=true}} makes the fonts look always nice
{{Note|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 {{ic|1=-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 {{ic|1=-sPAPERSIZE=slide}}.}}
== See also ==
* [https://www.ghostscript.com/ Official website]

Latest revision as of 23:10, 24 November 2018