/usr/share/doc/gdl-coyote/html/cgps2pdf.html is in gdl-coyote 2016.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | <html>
<head>
<TITLE>coyote: CGPS2PDF</TITLE>
<style>
dt {font-weight: bold;}
</style>
</head>
<body>
<H1><a href="index.html">coyote</a>: CGPS2PDF</H1>
<ul>
<li><a href=Utilities.html>coyote/Utilities</a></li>
<li><a href=Graphics.html>coyote/Graphics</a></li>
<li><a href="/usr/share/gnudatalanguage/coyote/cgps2pdf.pro">[Source code]</a></li>
</ul>
<dl>
<dt>Description</dt>
<dd><pre>
Converts a PostScript file to a PDF file. This program requires
the `Ghostscript <http://www.ghostscript.com/download/>` program
to be installed on the user's computer, unless you are using a
Macintosh computer or an alterntive UNIX command to do the conversion
for you. If you are on a Macintosh, the supplied pstopdf
program is used instead. Use the `UNIX_Convert_Cmd` keyword to select
an alternative UNIX command (e.g., pstopdf or epstopdf).
The program requires the `Coyote Library <http://www.idlcoyote.com/documents/programs.php>`
to be installed on your machine.
</pre></dd>
</dl>
<dl>
<dt>Categories</dt>
<dd><pre>
Utilities, Graphics
</pre></dd>
</dl>
<dl>
<dt>Params</dt>
<dd><pre>
ps_file: in, required, type=string
The name of the input PostScript file that is being converted to a PDF file.
If not provided, the user will be asked to select a file.
pdf_file: in, optional, type=string
The name of the output PDF file. If not provided, the name is constructed from
the input PostScript file name.
</pre></dd>
</dl>
<dl>
<dt>Keywords</dt>
<dd><pre>
delete_ps: in, optional, type=boolean, default=0
If this keyword is set, the PostScript file will be deleted after conversion.
gs_path: in, optional, type=string
This program assumes that UNIX users can access Ghostscript with the "gs"
command. It assumes WINDOWS users have installed Ghostscript in either
the C:\gs or C:\Program Files\gs directories. If either of these assumptions
is incorrect, you can specify the directory where the Ghostscript executable
resides with this keyword. (The Windows 32-bit executable is named gswin32c.exe
and the 64-bit executable is named gswin64c.exe.)
pagetype: in, optional, type=string, default="LETTER"
Set this keyword to the "type" of page. Possible values are::
"Letter" - 8.5 by 11 inches.
"Legal" - 8.5 by 14 inches.
"Ledger" - 11 by 17 inches.
"A4" - 21.0 by 29.7 centimeters.
showcmd: in, optional, type=boolean, default=0
Set this keyword to print the command that is spawned in the command output window.
silent: in, optional, type=boolean, default=0
Set this keyword to suppress output messages.
success: out, optional, type=boolean
Set this keyword to a named variable that on output will contain a 1 to
indicate successful completion of the command, or to 0 otherwise.
unix_convert_cmd: in, optional, type=string
There are a number of commands on UNIX machines for converting PostScript files
to PDF files. This program assumes you are using Ghostscript to do the conversion
for you. The Ghostscript command on most UNIX machines is "gs", which is used if
this keyword is undefined. However, if you would prefer to use another program to do
the conversion for you, you can specify the name of the command here. For example,
"pstopdf" or "epstopdf". In creating the actual command, this command will be
separated by a space from the input file name. In other words, if the alternative
conversion command was "pstopdf", the actual command would be "pstopdf" + " " + ps_file.
Any output filename is ignored. This command does not apply to Macintosh or Windows
computers.
version: out, optional, type=string
On exit, contains the version of Ghostscipt that was used. Not available on Macs
or if an alternative UNIX command was used.
</pre></dd>
</dl>
<dl>
<dt>Examples</dt>
<dd><pre>
A typical sequence of commands to create a test.pdf file::
cgPS_Open, Filename='test.ps'
cgHistoplot, cgDemoData(7), /Fill
cgPS_Close
cgPS2PDF, 'test.ps'
</pre></dd>
</dl>
<dl>
<dt>Author</dt>
<dd><pre>
FANNING SOFTWARE CONSULTING::
David W. Fanning
1645 Sheely Drive
Fort Collins, CO 80526 USA
Phone: 970-221-0438
E-mail: david@idlcoyote.com
Coyote's Guide to IDL Programming: http://www.idlcoyote.com
</pre></dd>
</dl>
<dl>
<dt>History</dt>
<dd><pre>
Change History::
Written, 6 December 2011, from code supplied to me by Paul Krummel. DWF.
I had been using the Mac command pstopdf to create PDF files on Macs. Unfortunately, these
PDF files are rotated incorrectly for plots having a landscape aspect ratio (ie, most plots).
In this version of the software, I have decided to have Macs use Ghostscript and ImageMagick
like all other UNIX machines. However, I have left the pstopdf code in place to accommodate
anyone who prefers that method. You will have to uncomment the appropriate bits of code
(there are two places where this has to happen, search for "DARWIN" in the code). 14 Aug 2013. DWF.
</pre></dd>
</dl>
<dl>
<dt>Copyright</dt>
<dd><pre>
Copyright (c) 2011, Fanning Software Consulting, Inc.
</pre></dd>
</dl>
</body>
</html>
|