From ArchWiki
Revision as of 00:11, 19 August 2011 by Pointone (Talk | contribs) (use i18n template)

Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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.


One command does it all:

ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true


  • ps2pdf is the wrapper to ghostscript Template:Sn
  • with -sPAPERSIZE=something you define the paper size Template:Sn
  • -dOptimize=true let's the created PDF be optimised for loading
  • -dEmbedAllFonts=true makes the fonts look always nice


  • 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