- ps2pdf (1) — Linux Manuals
- ps2pdf: Convert PostScript to PDF using ghostscript
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- EXAMPLES
- Postscript to pdf linux
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- EXAMPLES
- SEE ALSO
- BUGS
- VERSION
- AUTHOR
- Postscript to pdf linux
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- EXAMPLES
- SEE ALSO
- BUGS
- VERSION
- AUTHOR
- How to convert PostScript into Portable Document Format
- 3. Inserting bookmarks by using pdfmark operators
- Postscript to pdf linux
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- EXAMPLES
- SEE ALSO
- BUGS
- VERSION
- AUTHOR
ps2pdf (1) — Linux Manuals
ps2pdf: Convert PostScript to PDF using ghostscript
Command to display ps2pdf manual in Linux: $ man 1 ps2pdf
NAME
ps2pdf — Convert PostScript to PDF using ghostscript
ps2pdf12 — Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript
ps2pdf13 — Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscript
ps2pdf14 — Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible) using ghostscript
SYNOPSIS
ps2pdf [options. ]
ps2pdf12 [options. ]
ps2pdf13 [options. ]
ps2pdf14 [options. ]
DESCRIPTION
The ps2pdf scripts are work-alikes for nearly all the functionality (but not the user interface) of Adobe’s Acrobat(TM) Distiller(TM) product: they convert PostScript files to Portable Document Format (PDF) files.
If the output filename is not specified, the output is placed in a file of the same name with a ‘.pdf’ extension in the current working directory. Either the input filename or the output filename can be ‘-‘ to request reading from stdin or writing to stdout, respectively, when used as a filter.
The three scripts differ as follows: — ps2pdf12 will always produce PDF 1.2 output (Acrobat 3-and-later compatible). — ps2pdf13 will always produce PDF 1.3 output (Acrobat 4-and-later compatible). — ps2pdf14 will always produce PDF 1.4 output (Acrobat 5-and-later compatible). — ps2pdf per se currently produces PDF 1.4 output. However, this may change in the future. If you care about the compatibility level of the output, use ps2pdf12, ps2pdf13 or ps2pdf14, or use the -dCompatibilityLevel=1.x switch in the command line.
There are some limitations in ps2pdf‘s conversion. See the HTML documentation for more information. A large number of Adobe Distiller(TM) parameters which can be used to control the conversion are also documented there, including instructions for generating PDF/X and PDF/A documents.
OPTIONS
EXAMPLES
Converting a figure.ps to figure.pdf:
ps2pdf figure.ps
A conversion with more specifics:
Postscript to pdf linux
NAME
ps2pdf - Convert PostScript to PDF using ghostscript ps2pdf12 - Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript ps2pdf13 - Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscript ps2pdf14 - Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible) using ghostscript
SYNOPSIS
ps2pdf [options. ][output.pdf|-] ps2pdf12 [options. ] [output.pdf|-] ps2pdf13 [options. ] [output.pdf|-] ps2pdf14 [options. ] [output.pdf|-]
DESCRIPTION
The ps2pdf scripts are work-alikes for nearly all the functionality (but not the user interface) of Adobe's Acrobat(TM) Distiller(TM) product: they convert PostScript files to Portable Document Format (PDF) files. If the output filename is not specified, the output is placed in a file of the same name with a '.pdf' extension in the current working directory. Either the input filename or the output filename can be '-' to request reading from stdin or writing to stdout, respectively, when used as a filter. The three scripts differ as follows: - ps2pdf12 will always produce PDF 1.2 output (Acrobat 3-and-later compatible). - ps2pdf13 will always produce PDF 1.3 output (Acrobat 4-and-later compatible). - ps2pdf14 will always produce PDF 1.4 output (Acrobat 5-and-later compatible). - ps2pdf per se currently produces PDF 1.4 output. However, this may change in the future. If you care about the compatibility level of the output, use ps2pdf12, ps2pdf13 or ps2pdf14, or use the -dCompatibility=1.x switch in the command line. There are some limitations in ps2pdf's conversion. See the HTML documentation for more information. A large number of Adobe Distiller(TM) parameters which can be used to control the conversion are also documented there, including instructions for generating PDF/X and PDF/A documents.
OPTIONS
EXAMPLES
Converting a figure.ps to figure.pdf: ps2pdf figure.ps A conversion with more specifics: ps2pdf -dPDFSETTINGS=/prepress figure.ps proof.pdf Converting as part of a pipe: make_report.pl -t ps | ps2pdf -dCompatibility=1.3 - - | lpr
SEE ALSO
gs(1), ps2pdfwr(1), Ps2pdf.htm in the Ghostscript documentation
BUGS
See http://bugs.ghostscript.com/ and the Usenet news group comp.lang.postscript.
VERSION
This document was last revised for Ghostscript version 9.18.
AUTHOR
Artifex Software, Inc. are the primary maintainers of Ghostscript. This manpage by George Ferguson.
© 2019 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.
Postscript to pdf linux
NAME
ps2pdf - Convert PostScript to PDF using ghostscript ps2pdf12 - Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript ps2pdf13 - Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscript ps2pdf14 - Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible) using ghostscript
SYNOPSIS
ps2pdf [options. ][output.pdf|-] ps2pdf12 [options. ] [output.pdf|-] ps2pdf13 [options. ] [output.pdf|-] ps2pdf14 [options. ] [output.pdf|-]
DESCRIPTION
The ps2pdf scripts are work-alikes for nearly all the functionality (but not the user interface) of Adobe's Acrobat(TM) Distiller(TM) product: they convert PostScript files to Portable Document Format (PDF) files. If the output filename is not specified, the output is placed in a file of the same name with a '.pdf' extension in the current working directory. Either the input filename or the output filename can be '-' to request reading from stdin or writing to stdout, respectively, when used as a filter. The three scripts differ as follows: - ps2pdf12 will always produce PDF 1.2 output (Acrobat 3-and-later compatible). - ps2pdf13 will always produce PDF 1.3 output (Acrobat 4-and-later compatible). - ps2pdf14 will always produce PDF 1.4 output (Acrobat 5-and-later compatible). - ps2pdf per se currently produces PDF 1.4 output. However, this may change in the future. If you care about the compatibility level of the output, use ps2pdf12, ps2pdf13 or ps2pdf14, or use the -dCompatibilityLevel=1.x switch in the command line. There are some limitations in ps2pdf's conversion. See the HTML documentation for more information. A large number of Adobe Distiller(TM) parameters which can be used to control the conversion are also documented there, including instructions for generating PDF/X and PDF/A documents.
OPTIONS
EXAMPLES
Converting a figure.ps to figure.pdf: ps2pdf figure.ps A conversion with more specifics: ps2pdf -dPDFSETTINGS=/prepress figure.ps proof.pdf Converting as part of a pipe: make_report.pl -t ps | ps2pdf -dCompatibilityLevel=1.3 - - | lpr
SEE ALSO
gs(1), ps2pdfwr(1), Ps2pdf.htm in the Ghostscript documentation
BUGS
See http://bugs.ghostscript.com/ and the Usenet news group comp.lang.postscript.
VERSION
This document was last revised for Ghostscript version 9.50.
AUTHOR
Artifex Software, Inc. are the primary maintainers of Ghostscript. This manpage by George Ferguson.
© 2019 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.
How to convert PostScript into Portable Document Format
This command would convert all PS files in the current directory into one PDF file. If all original files contain only one page then the resulting PDF document would have have one page for each file. The option "-c > setpagedevice" is necessary if you want to rotate the PS files for viewing on the screen, what is the case for my files. The option -c .setpdfwrite seems to be necessary in order to enable the rotation feature.
The output PDF file can be viewed with Acrobat Reader and prints out fine. I have not observed losses in printing quality compared to the original PS files. The size of the PDF file is only about half of the total size of the PS files. This advantage, however, vanishes if the PS files are compressed (compression on PDF does not reduce the file size much).
3. Inserting bookmarks by using pdfmark operators
Bookmarks are a useful feature to enhance the readability of a PDF document. When converting PostScript into PDF, bookmarks (and other PDF features such as links or annotations) can be inserted by using the pdfmark PostScript extension. This allows to add information to PS files that is not normally present but is necessary for PDF specific features. The original PS files have to be edited.
1. Step: Add a line in the prolog section of the PS document so that PostScript interpreters that are not using pdfmark are not confused:
%% BeginProlog
/pdfmark where
ifelse
%% EndProlog
2. Step: Add a pdfmark operator in the set-up section so that the list of bookmarks in the resulting PDF document is visible on the left hand side when the file is opened:
%% BeginSetup
[/PageMode /UseOutlines
/Page 1 /View [/XYZ null null null]
/DOCVIEW pdfmark
%% EndSetup
The /XYZ parameter specifies the place and the magnification of the page. /XYZ null null 2.0 would, for example, mean a zoom factor of 200%.
3. Step: Add pdfmark bookmark operators. The place of the operators within the PS file does not seem to be important. I have added them at the beginning of the first page. Examples for bookmarks would be:
[/Page 1 /View [/XYZ null null null] /Title (Main QC plot) /OUT pdfmark
[/Page 2 /View [/XYZ null null null] /Title (Position check) /OUT pdfmark
[/Page 3 /View [/XYZ null null null] /Title (FWHM check) /OUT pdfmark
These operators would create three bookmarks, one for every page. If you convert several PS files into on PDF document then it is sufficient to edit only the first file.
I have created an example PDF document that contains three plots and a bookmark for every plot.
I have also written a small shell script in order to demonstrate automatic editing of PostScript files. The script adds a prolog section, a set-up section, and the pdfmark bookmark operators to an existing PS file. It makes some assumption on the file, i.e. that the prolog and set-up sections are not already present. The script is called by
add_pdfmark.sh in_ps_file out_ps_file bookmark_file
where bookmark_file is an ASCII file containing the pdfmark operators. It could, for example, contain the three lines written under step 3.
Postscript to pdf linux
NAME
ps2pdf - Convert PostScript to PDF using ghostscript ps2pdf12 - Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript ps2pdf13 - Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscript ps2pdf14 - Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible) using ghostscript
SYNOPSIS
ps2pdf [options. ][output.pdf|-] ps2pdf12 [options. ] [output.pdf|-] ps2pdf13 [options. ] [output.pdf|-] ps2pdf14 [options. ] [output.pdf|-]
DESCRIPTION
The ps2pdf scripts are work-alikes for nearly all the functionality (but not the user interface) of Adobe's Acrobat(TM) Distiller(TM) product: they convert PostScript files to Portable Document Format (PDF) files. If the output filename is not specified, the output is placed in a file of the same name with a '.pdf' extension in the current working directory. Either the input filename or the output filename can be '-' to request reading from stdin or writing to stdout, respectively, when used as a filter. The three scripts differ as follows: - ps2pdf12 will always produce PDF 1.2 output (Acrobat 3-and-later compatible). - ps2pdf13 will always produce PDF 1.3 output (Acrobat 4-and-later compatible). - ps2pdf14 will always produce PDF 1.4 output (Acrobat 5-and-later compatible). - ps2pdf per se currently produces PDF 1.4 output. However, this may change in the future. If you care about the compatibility level of the output, use ps2pdf12, ps2pdf13 or ps2pdf14, or use the -dCompatibility=1.x switch in the command line. There are some limitations in ps2pdf's conversion. See the HTML documentation for more information. A large number of Adobe Distiller(TM) parameters which can be used to control the conversion are also documented there, including instructions for generating PDF/X and PDF/A documents.
OPTIONS
EXAMPLES
Converting a figure.ps to figure.pdf: ps2pdf figure.ps A conversion with more specifics: ps2pdf -dPDFSETTINGS=/prepress figure.ps proof.pdf Converting as part of a pipe: make_report.pl -t ps | ps2pdf -dCompatibility=1.3 - - | lpr
SEE ALSO
gs(1), ps2pdfwr(1), Ps2pdf.htm in the Ghostscript documentation
BUGS
See http://bugs.ghostscript.com/ and the Usenet news group comp.lang.postscript.
VERSION
This document was last revised for Ghostscript version 9.10.
AUTHOR
Artifex Software, Inc. are the primary maintainers of Ghostscript. This manpage by George Ferguson.
© 2019 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.