3 SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
4 SPDX-License-Identifier: MIT
5 SPDX-FileType: DOCUMENTATION
7 This file is processed by the bin/SConsDoc.py module.
11 <!ENTITY % scons SYSTEM '../../doc/scons.mod'>
13 <!ENTITY % builders-mod SYSTEM '../../doc/generated/builders.mod'>
15 <!ENTITY % functions-mod SYSTEM '../../doc/generated/functions.mod'>
17 <!ENTITY % tools-mod SYSTEM '../../doc/generated/tools.mod'>
19 <!ENTITY % variables-mod SYSTEM '../../doc/generated/variables.mod'>
23 <sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
30 This Tool sets the required construction variables for working with
31 the Ghostscript software. It also registers an appropriate Action
32 with the &b-link-PDF; Builder, such that the conversion from
33 PS/EPS to PDF happens automatically for the TeX/LaTeX toolchain.
34 Finally, it adds an explicit &b-link-Gs; Builder for Ghostscript
51 The Ghostscript program used to, for example, convert PostScript to PDF files.
59 The full Ghostscript command line used for the conversion process. Its default
60 value is <quote><literal>$GS $GSFLAGS -sOutputFile=$TARGET $SOURCES</literal></quote>.
65 <cvar name="GSCOMSTR">
68 The string displayed when
69 Ghostscript is called for the conversion process.
70 If this is not set (the default), then &cv-link-GSCOM; (the command line) is displayed.
78 General options passed to the Ghostscript program,
79 when converting PostScript to PDF files for example. Its default value
80 is <quote><literal>-dNOPAUSE -dBATCH -sDEVICE=pdfwrite</literal></quote>
88 A Builder for explicitly calling the <application>gs</application> executable.
89 Depending on the underlying OS, the different names <application>gs</application>,
90 <application>gsos2</application> and <application>gswin32c</application>
94 env = Environment(tools=['gs'])
98 GSFLAGS='-dNOPAUSE -dBATCH -sDEVICE=jpeg -dFirstPage=1 -dLastPage=1 -q',