source: pst/printing/gs.xml@ e99bb77

12.0 12.1 12.2 gimp3 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since e99bb77 was 14891a90, checked in by Xi Ruoyao <xry111@…>, 14 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

  • Property mode set to 100644
File size: 13.0 KB
RevLine 
[ed30f09]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[73ddd1a0]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[00b6675]6
[680a059]7 <!-- When updating, ensure gs-packver is updated in packages.ent -->
[a5653eb]8
[6b58d592]9 <!ENTITY gs-download-http
[680a059]10 "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs&gs-packver;/ghostscript-&gs-dl-version;.tar.xz">
[de109d93]11 <!ENTITY gs-download-ftp " ">
[1d522bd]12 <!ENTITY gs-md5sum "7dc5547e6a54307e75e37fdf379e489b">
[15a1a0cd]13 <!ENTITY gs-size "64 MB">
[1d522bd]14 <!ENTITY gs-buildsize "323 MB (with fonts and libgs.so)">
[15a1a0cd]15 <!ENTITY gs-time "1.8 SBU (Using parallelism=4; with libgs.so)">
[100786d]16
[95b8c6d]17 <!ENTITY gs-standard-fonts-download
[8dfc5c3]18 "&sourceforge-dl;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
[00b6675]19 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
[100786d]20 <!ENTITY gs-standard-fonts-size "3.7 MB">
[00b6675]21
[95b8c6d]22 <!ENTITY gs-other-fonts-download
[8dfc5c3]23 "&sourceforge-dl;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
[100786d]24 <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
25 <!ENTITY gs-other-fonts-size "796 KB">
[73ddd1a0]26]>
27
[a027d7d3]28<sect1 id="gs" xreflabel="ghostscript-&gs-version;">
[ed30f09]29 <?dbhtml filename="gs.html"?>
30
31
[a027d7d3]32 <title>ghostscript-&gs-version;</title>
[ed30f09]33
34 <indexterm zone="gs">
[0c32749]35 <primary sortas="a-Ghostscript">Ghostscript</primary>
[ed30f09]36 </indexterm>
37
38 <sect2 role="package">
39 <title>Introduction to Ghostscript</title>
40
[fa3edfef]41 <para>
42 <application>Ghostscript</application> is a versatile processor
43 for PostScript data with the ability to render PostScript to different
44 targets. It is a mandatory part of the cups printing stack.
45 </para>
[ed30f09]46
[dbd73d6]47 &lfs113_checked;
[aa8ef3bc]48
[ed30f09]49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
[fa3edfef]52 <para>
53 Download (HTTP): <ulink url="&gs-download-http;"/>
54 </para>
[ed30f09]55 </listitem>
56 <listitem>
[fa3edfef]57 <para>
58 Download (FTP): <ulink url="&gs-download-ftp;"/>
59 </para>
[ed30f09]60 </listitem>
61 <listitem>
[fa3edfef]62 <para>
63 Download MD5 sum: &gs-md5sum;
64 </para>
[ed30f09]65 </listitem>
66 <listitem>
[fa3edfef]67 <para>
68 Download size: &gs-size;
69 </para>
[ed30f09]70 </listitem>
71 <listitem>
[fa3edfef]72 <para>
73 Estimated disk space required: &gs-buildsize;
74 </para>
[ed30f09]75 </listitem>
76 <listitem>
[fa3edfef]77 <para>
78 Estimated build time: &gs-time;
79 </para>
[ed30f09]80 </listitem>
81 </itemizedlist>
[1bff7a94]82
[ed30f09]83 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[5fcebb8]84 <!-- devs: do not comment out the bridgehead, unless you comment
85 out all the additional downloads (including font files)
[27cc55e9]86 Commenting this out since it's no longer needed, but keeping it for the
[ea4164ad]87 inevitable next time that we need a patch for this package.-->
[30d3d9d3]88<!--
[c8585068]89 <itemizedlist spacing="compact">
90 <listitem>
91 <para>
92 Required patch:
[ea4164ad]93 <ulink url="&patch-root;/ghostscript-&gs-version;-upstream_fix-1.patch"/>
[c8585068]94 </para>
95 </listitem>
96 </itemizedlist>
[30d3d9d3]97-->
[fa3edfef]98 <para>
99 If you wish, you can download additional fonts.
100 </para>
[933ceec]101
[6b58d592]102 <itemizedlist spacing="compact">
[ed30f09]103 <title>Standard Fonts</title>
104 <listitem>
[fa3edfef]105 <para>
106 Download (HTTP): <ulink url="&gs-standard-fonts-download;"/>
107 </para>
[ed30f09]108 </listitem>
109 <listitem>
[fa3edfef]110 <para>
111 Download MD5 sum: &gs-standard-fonts-md5sum;
112 </para>
[ed30f09]113 </listitem>
114 <listitem>
[fa3edfef]115 <para>
116 Download size: &gs-standard-fonts-size;
117 </para>
[ed30f09]118 </listitem>
119 </itemizedlist>
120
[6b58d592]121 <itemizedlist spacing="compact">
[ed30f09]122 <title>Other Fonts</title>
123 <listitem>
[fa3edfef]124 <para>
125 Download (HTTP): <ulink url="&gs-other-fonts-download;"/>
126 </para>
[ed30f09]127 </listitem>
128 <listitem>
[fa3edfef]129 <para>
130 Download MD5 sum: &gs-other-fonts-md5sum;
131 </para>
[ed30f09]132 </listitem>
133 <listitem>
[fa3edfef]134 <para>
135 Download size: &gs-other-fonts-size;
136 </para>
[ed30f09]137 </listitem>
138 </itemizedlist>
139
[b29ed97c]140 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
[ed30f09]141
[de109d93]142 <bridgehead renderas="sect4">Recommended</bridgehead>
[2d37d32]143 <para role="recommended">
[7524e07]144 <xref linkend="cups"/> (required for building the <quote>cups</quote>
145 device backend, which is needed by
146 <application>cups-filters</application>),
147 <xref linkend="fontconfig"/> (required, if you are installing any
148 suggested font),
[2d37d32]149 <xref linkend="freetype2"/>,
[e52c70d]150 <xref linkend="lcms2"/>,
[2d37d32]151 <xref linkend="libjpeg"/>,
[933ceec]152 <xref linkend="libpng"/>,
[bb65a3c]153 <xref linkend="libtiff"/>, and
[12341a8]154 <xref linkend="openjpeg2"/>
[2d37d32]155 </para>
[de109d93]156
157 <bridgehead renderas="sect4">Optional</bridgehead>
[2d37d32]158 <para role="optional">
159 <xref linkend="cairo"/>,
[f7153b6]160 <xref linkend="gtk3"/>,
[2d37d32]161 <xref linkend="libidn"/>,
[bb65a3c]162 <xref linkend="libpaper"/>, and
[1ecdb18]163 <xref linkend="x-window-system"/>
[2d37d32]164 </para>
165
[ed30f09]166 </sect2>
167
168 <sect2 role="installation">
169 <title>Installation of Ghostscript</title>
170
[2d37d32]171 <note>
172 <para>
173 The <application>Ghostscript</application> build system is not
174 user-friendly. In order to use system copies of various graphics
175 libraries, you must do it using unconventional methods.
176 </para>
177 </note>
[100786d]178
[2d37d32]179 <para>
[0c32749]180 <application>Ghostscript</application> includes (old) copies of
[de109d93]181 several libraries. Some of these seem to have been patched to fix known
182 vulnerabilities, but others of these copies are less-well maintained.
183 To ensure that any future fixes are applied throughout the whole system,
[2d37d32]184 it is recommended that you first install the released versions of these
[0c32749]185 libraries and then configure <application>Ghostscript</application>
[2d37d32]186 to link to them.
187 </para>
[d453af5]188
[2d37d32]189 <para>
[8558044]190 If you have installed the recommended dependencies on your system,
[4886a74]191 remove the copies of
[1df1b16]192 <application>freetype</application>, <application>lcms2</application>,
[12341a8]193 <application>libjpeg</application>, <application>libpng</application>,
194 and <application>openjpeg</application>:
[2d37d32]195 </para>
[ed30f09]196
[12341a8]197<screen><userinput>rm -rf freetype lcms2mt jpeg libpng openjpeg</userinput></screen>
[2d37d32]198
[30d3d9d3]199<!--
[27cc55e9]200 <para>
[ea4164ad]201 Apply an upstream fix to prevent a build problem.
[27cc55e9]202 </para>
203
[ea4164ad]204<screen><userinput remap="pre">patch -Np1 -i ../ghostscript-&gs-version;-upstream_fix-1.patch</userinput></screen>
[30d3d9d3]205-->
[fa3edfef]206 <para>
207 Compile <application>Ghostscript</application>:
208 </para>
[de109d93]209
[595e58e]210<screen><userinput>rm -rf zlib &amp;&amp;
[60d53ec3]211
212./configure --prefix=/usr \
213 --disable-compile-inits \
214 --with-system-libtiff &amp;&amp;
[038ea6ba]215make</userinput></screen>
216
[d453af5]217 <note>
[2d37d32]218 <para>
[9bfd70c]219 The shared library depends on <xref linkend="gtk3"/>. It is only used by
[7ab0957e]220 external programs like <xref linkend="asymptote"/>, <xref
[680a059]221 linkend="dvisvgm"/>, and <xref linkend="imagemagick"/>.
[2d37d32]222 </para>
[d453af5]223 </note>
[038ea6ba]224
[2d37d32]225 <para>
226 To compile the shared library
227 <filename class="libraryfile">libgs.so</filename>, run the following
228 additional command as an unprivileged user:
229 </para>
[038ea6ba]230
231<screen><userinput>make so</userinput></screen>
[73ddd1a0]232
[2d37d32]233 <para>
[a2a37c7]234 This package does not come with a test suite. A set of example files
235 may be used for testing, but it is only possible after installation
236 of the package.
[2d37d32]237 </para>
[d453af5]238
[2d37d32]239 <para>
240 Now, as the <systemitem class="username">root</systemitem> user:
241 </para>
[038ea6ba]242
[d453af5]243<screen role="root"><userinput>make install</userinput></screen>
244
[fa3edfef]245 <para>
246 If you want the shared library too:
247 </para>
[d453af5]248
249<screen role="root"><userinput>make soinstall &amp;&amp;
[aa8ef3bc]250install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
[eff6c3a8]251ln -sfvn ghostscript /usr/include/ps</userinput></screen>
[73ddd1a0]252
[fa3edfef]253 <para>
[f863a1b0]254 Now make the documentation accessible from a standard place:
[fa3edfef]255 </para>
[a0968dcc]256<!-- Starting with 9.23, the install does not seem to copy the examples any more -->
[d453af5]257
[12341a8]258<screen role="root"><userinput>mv -v /usr/share/doc/ghostscript/&gs-version; /usr/share/doc/ghostscript-&gs-version; &amp;&amp;
259rm -rfv /usr/share/doc/ghostscript &amp;&amp;
[654fe2b]260cp -r examples/ /usr/share/ghostscript/&gs-version;/</userinput></screen>
[73ddd1a0]261
[2d37d32]262 <para>
[798c542]263 If you have downloaded the fonts, unpack them to
[2d37d32]264 <filename class="directory">/usr/share/ghostscript</filename> and ensure
[f863a1b0]265 the ownership of the files are
[2d37d32]266 <systemitem class="username">root</systemitem>:
[798c542]267 <systemitem class="groupname">root</systemitem>.
[2d37d32]268 </para>
[038ea6ba]269
[798c542]270<screen role="root"><userinput>tar -xvf ../ghostscript-fonts-std-8.11.tar.gz -C /usr/share/ghostscript --no-same-owner &amp;&amp;
271tar -xvf ../gnu-gs-fonts-other-6.0.tar.gz -C /usr/share/ghostscript --no-same-owner &amp;&amp;
[142f958b]272fc-cache -v /usr/share/ghostscript/fonts/</userinput></screen>
[a2a37c7]273
274 <para>
[f863a1b0]275 You can now test the rendering of various postscript and pdf files from the
[a2a37c7]276 <filename class="directory">/usr/share/ghostscript/&gs-version;/examples
[f863a1b0]277 </filename>. To do this, run the following command (in a X Windows display):
[a2a37c7]278 </para>
279
[c77fb71f]280<screen remap="test"><userinput>gs -q -dBATCH /usr/share/ghostscript/&gs-version;/examples/tiger.eps</userinput></screen>
[a2a37c7]281
[ed30f09]282 </sect2>
[73ddd1a0]283
[2ddf71a5]284 <sect2 role="commands">
285 <title>Command Explanations</title>
286
[2d37d32]287 <para>
[f19b432b]288 <command>rm -rf zlib </command>: <application>zlib</application>
289 was installed as part of LFS.
[2d37d32]290 </para>
291
292 <para>
[2bb5c32]293 <parameter>--disable-compile-inits</parameter>: This option makes
[933ceec]294 <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
[2d37d32]295 </para>
296
297 <para>
[142f958b]298 <parameter>--with-system-libtiff</parameter>: Remove this option if
299 you've not installed <xref linkend="libtiff"/>.
[2d37d32]300 </para>
301
302 <para>
[81f0120]303 <command>install -v -m644 base/*.h... </command>: Some packages
[2d37d32]304 (<application>ImageMagick</application> is one) need the
305 <application>Ghostscript</application> interface headers in place to link
306 to the shared library. These commands install the headers.
307 </para>
308
309 <para>
[eff6c3a8]310 <command>ln -sfvn ghostscript /usr/include/ps</command>: Some packages
[2d37d32]311 expect to find the interface headers in an alternate location.
312 </para>
313
314 <para>
[12341a8]315 <command>mv -v /usr/share/doc/ghostscript/&gs-version;
316 /usr/share/doc/ghostscript-&gs-version;</command>: This moves the
317 documentation where it is expected to be found.
[2d37d32]318 </para>
[933ceec]319
320 <para>
321 <option>--disable-cups</option>: this option will save a tiny amount of
322 space by not linking <command>gs</command> and <filename>libgs.so</filename>
323 to the <xref linkend="cups"/> libraries if you have installed those.
324 </para>
[2ddf71a5]325 </sect2>
326
[ed30f09]327 <sect2 role="content">
328 <title>Contents</title>
[038ea6ba]329 <segmentedlist>
330 <segtitle>Installed Programs</segtitle>
331 <segtitle>Installed Library</segtitle>
332 <segtitle>Installed Directories</segtitle>
333
334 <seglistitem>
[2d37d32]335 <seg>
[0e390db]336 dvipdf, eps2eps, gs, gsbj, gsc (from soinstall), gsdj,
[81f0120]337 gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh,
338 pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii,
339 ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr,
[0e390db]340 ps2ps, ps2ps2, and unix-lpr.sh
[933ceec]341 <!-- I don't see bdftops,fixmswrd.pl or pv.sh on my builds [ I don't
342 have any bdf tools from xorg ] but they are still referenced in
343 base/unixinst.mak -->
[2d37d32]344 </seg>
[15a1a0cd]345 <seg>libgs.so</seg>
[2d37d32]346 <seg>
347 /usr/include/ghostscript,
[019052a1]348 /usr/share/ghostscript, and
[2d37d32]349 /usr/share/doc/ghostscript-&gs-version;
350 </seg>
[038ea6ba]351 </seglistitem>
352 </segmentedlist>
353
354 <variablelist>
355 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
356 <?dbfo list-presentation="list"?>
357 <?dbhtml list-presentation="table"?>
358
[d891148c]359 <varlistentry id="gplgs-prog">
[038ea6ba]360 <term><command>gs</command></term>
361 <listitem>
[2d37d32]362 <para>
363 is an interpreter for Adobe Systems' PostScript(tm) and Portable
[4c24eb0a]364 Document Format (PDF)
[2d37d32]365 </para>
[d891148c]366 <indexterm zone="gs gplgs-prog">
[038ea6ba]367 <primary sortas="b-gs">gs</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
[d891148c]372 <varlistentry id="libgs.so">
373 <term><filename class="libraryfile">libgs.so</filename></term>
374 <listitem>
[2d37d32]375 <para>
376 provides <application>Ghostscript</application> functionality to
377 other programs, such as <application>GSView</application>,
378 <application>ImageMagick</application>, and
[4c24eb0a]379 <application>libspectre</application>
[2d37d32]380 </para>
[d891148c]381 <indexterm zone="gs libgs.so">
382 <primary sortas="c-libgs.so">libgs.so</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
[038ea6ba]386 </variablelist>
387
[2d37d32]388 <para>
[0c32749]389 <application>Ghostscript</application> provides many different
[2d37d32]390 scripts used to convert PostScript, PDF, and other formats. Please refer to
391 the HTML documentation or the man pages for information about the
392 capabilities provided.
393 </para>
[ed30f09]394 </sect2>
[4c24eb0a]395
[cabb2de]396</sect1>
Note: See TracBrowser for help on using the repository browser.