Debian Codegraph @

texk/dvipdfm-x/tests/dvipdfmx.cfg

raw
1 %% dvipdfmx.cfg for dvipdfmx and xdvipdfmx. (Public domain.)
2 %%
3 %% PDF Version Setting
4 %%
5 %% PDF (minor) version stamp to use in output file.
6 %% This also implies maximal version of PDF file allowed to be included.
7 %% Dvipdfmx does not support 1.0, 1.1, 1.2 since TrueType font embedded
8 %% as CIDFontType2 requires at least version 1.3. Transparent imaging
9 %% model requires version 1.4. So if you want soft-masking support for
10 %% PNG image with alpha channels, you should set version to 4 or higher.
11 %% PDF 1.5 enables object compression.
12
13 V 7
14
15 %% Dvipdfmx Compatibility Flags
16 %%
17 %% 0x0002 Use semi-transparent filling for tpic shading command,
18 %% instead of opaque gray color. (requires PDF 1.4)
19 %% 0x0004 Treat all CIDFont as fixed-pitch font.
20 %% This is only for backward compatibility. Don't use that.
21 %% 0x0008 Do not replace duplicate fontmap entries.
22 %% Dvipdfm's (not 'x') behaviour.
23 %% 0x0010 Do not optimize PDF destinations. Use this if you want to
24 %% refer from other files to destinations in the current file.
25
26 %C 0x0000
27
28 %% PDF Document Settings
29 %%
30 %% Papersize Option:
31 %%
32 %% p papersize-spec
33 %%
34 %% papersize-spec is 'paper-format' or length-pair, e.g., 'a4', 'letter',
35 %% '20cm,30cm'. Recognized unit is 'cm', 'mm', 'bp', 'pt', 'in'.
36
37 p a4
38
39 %% Annotation Box Margin:
40 %%
41 %% g length
42 %%
43 %% Add margin to annotation rectangle created via various \specials. Many
44 %% TeX macro packages set the annotation bounding box equal to the TeX box
45 %% that encloses the material. That's not always what you want.
46 %% Annotations created by pdf:bannot/pdf:eannot is also affected.
47
48 %g 0
49
50 %% Bookmark Open Level:
51 %%
52 %% O integer
53 %%
54 %% Mark bookmark (outline) item as initial state 'open' if the depth
55 %% of that item (from root node) is less than or equal to the integer
56 %% specified with this option.
57
58 O 0
59
60 %% PDF Security (Encryption) Setting
61 %%
62 %% Those options won't take effects unless you use flag 'S'.
63 %%
64 %% Key bits for PDF encryption (40 - 128)
65
66 K 40
67
68 %% Permission flag for PDF encryption: Revision will be 3 if the key size
69 %% is greater than 40 bits.
70 %%
71 %% 0x0004 (Revision 2) Print the document.
72 %% (Revision 3) Print the document (possibly not at the highest quality
73 %% level, depending on whether bit 12[0x0800] is also set).
74 %% 0x0008 Modify the contents of the document by operations other than those
75 %% controlled by bits 6[0x0020], 9[0x0100], and 11[0x0400].
76 %% 0x0010 (Revision 2) Copy or otherwise extract text and graphics from the
77 %% document, including extracting text and graphics (in support of
78 %% accessibility to disabled users or for other purposes).
79 %% (Revision 3) Copy or otherwise extract text and grphics from the
80 %% document by operations other than that controlled by bit 10[0x0200].
81 %% 0x0020 Add or modify text annotations, fill in interactive form fields,
82 %% and, if bit 4[0x0008] is also set, create or modify interactive
83 %% form fields (including signature fields).
84 %%
85 %% (Revision 3 only)
86 %% 0x0100 Fill in existing interactive form fields (including signature
87 %% fields), even if bit 6 is clear.
88 %% 0x0200 Extract text and graphics (in support of accessibility to disabled
89 %% users or for other purposes).
90 %% 0x0400 Assemble the document (insert, rotate, or delete pages and create
91 %% bookmarks or thumbnail images), even if bit 4 is clear.
92 %% 0x0800 Print the document to a representation from which a faithful digital
93 %% copy of the PDF content could be generated. When this bit is clear
94 %% (and bit 3 is set), printing is limited to a low-level representation
95 %% of the appearance, possibly of degraded quality.
96
97 P 0x003C
98
99 %% Image Handler
100 %%
101 %% With 'D' option dvipdfmx may invoke shell command via system()
102 %% function call.
103 %%
104 %% Command-line template for a-to-b conversion:
105 %%
106 %% Supported target format ('b') is currently PDF.
107 %% Percent sign '%' is special character:
108 %%
109 %% %i Input file name (FQPN). Name of file to be converted to PDF.
110 %% %o Output file name (FQPN). Temporary file to store conversion
111 %% result. Removed after inclusion is finished. (regardless of
112 %% success or failure)
113 %% %b The "base" name of the input file, e.g., "foo" instead of
114 %% "foo.eps".
115 %% %v The PDF version to be converted to, e.g. "1.4" for PDF 1.4.
116 %% %% Replaced with single '%'.
117
118 %% Ghostscript (PS-to-PDF and PDF-to-PDF):
119 %%
120 %% ps2pdf is a front-end to gs. For a complete list of options, see
121 %% http://ghostscript.com/doc/current/Ps2pdf.htm#Options
122 %%
123 %% By default, gs encodes all images contained in a PS file using
124 %% the lossy DCT (i.e., JPEG) filter. This often leads to inferior
125 %% result (see the discussion at http://electron.mit.edu/~gsteele/pdf/).
126 %% The "-dAutoFilterXXXImages" and "-dXXXImageFilter" options used
127 %% below force all images to be encoded with the lossless Flate (zlib,
128 %% same as PNG) filter. Note that if the PS file already contains DCT
129 %% encoded images (which is possible in PS level 2), then these images
130 %% will also be re-encoded using Flate. To turn the conversion off,
131 %% simply remove the options mentioned above.
132 %%
133 %% The -dEPSCROP below converts PS files. Before TL 2013,
134 %% -sPAPERSIZE=a0 was used for this. In 2013, changes were made to
135 %% xetex.def, dvipdfmx.def, etc., to handle non-zero llx/lly.
136 %%
137 %% In TeX Live, we use the rungs wrapper instead of ps2pdf, becuse we
138 %% must omit the -dSAFER which ps2pdf specifies: in order for pstricks
139 %% to work with xetex,
140 %% /usr/local/texlive/*/texmf-dist/dvips/pstricks/pstricks.pro (for
141 %% example) needs to be accessed. (Also, it is better to use our
142 %% supplied gs on Windows.) You can also add -dNOSAFER to the ps2pdf
143 %% command line.
144 %%
145 %% Incidentally, especially in TL, more than one dvipdfmx.cfg may be
146 %% extant. You can find the one that is active by running:
147 %% kpsewhich -progname=dvipdfmx -format='other text files' dvipdfmx.cfg
148 %% and control which one is found by setting DVIPDFMXINPUTS.
149 %%
150 D "rungs -q -dNOPAUSE -dBATCH -dEPSCrop -sDEVICE=pdfwrite -dCompatibilityLevel=%v -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile='%o' '%i' -c quit"
151
152 % pre-2013 invocation using -sPAPERSIZE instead of -dEPSCrop, no other changes:
153 %D "rungs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=%v -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile='%o' '%i' -c quit"
154
155 % other random ps converters people have experimented with.
156 %D "/usr/local/bin/ps2pdf -dEPSCrop '%i' '%o'"
157 %D "/usr/texbin/epstopdf '%i' -o '%o'"
158 %D "/usr/bin/pstopdf '%i' -o '%o'"
159 %
160 %% Frank Siegert's PStill:
161 %D "/usr/local/bin/pstill -c -o '%o' '%i'"
162 %
163 %% Batik + Fop (SVG-to-PDF):
164 %% If you want both PS and SVG, you need to write a script or program
165 %% that selectively invokes converters.
166 %D "java -classpath classpaths -jar /path/to/batik-rasterizer.jar -m application/pdf -d '%o' '%i'"
167 %
168 %% There are no way to directly know suggested size of (raster) images.
169 %% You may want to use %b here, since you can try reading the ebb file
170 %% to see what is natural (physical) size of images.
171 %D "ras2pdf -r 300x300 -b '%b.bb' -o '%o' '%i'"
172 %
173 %% ImageMagick:
174 %% Easiest way to support various file formats.
175 %D "convert '%i' 'epdf:%o'"
176
177 %% Other Options
178 %%
179 %% DPI for PK font creation
180
181 %r 600
182
183 %% Set number of fractional digit kept for various numbers in PDF page
184 %% content output. By setting this to 2 (default), dvipdfmx rounds
185 %% real numbers at 2nd fractional (decimal) digit; e.g., "3.14159" is
186 %% written as "3.14". Increasing this to more than 2 isn't meaningful
187 %% for old Acrobat due to implementation limit of Acrobat.
188 %% Length 0.01 in unscaled coordinate system amount to width of 1 pixel
189 %% in 7200ppi display.
190
191 %d 5
192
193 %% Image cache life in hours
194 %% 0 means erase all old images and leave new images
195 %% -1 means erase all old images and also erase new images
196 %% -2 means ignore image cache
197 %I -2
198
199 %% Font Map Files
200 %%
201 %% teTeX 2.x and TeX Live using updmap (pdfTeX format)
202 %f pdftex.map
203
204 %% teTeX 2.x and TeX Live using updmap (DVIPDFM format)
205 %f dvipdfm.map
206
207 %% teTeX 2.x and TeX Live using updmap (DVIPS format)
208 %% MiKTeX 2.2 and 2.3
209 f psfonts.map
210
211 %% Put additional fontmap files here (usually for Type0 fonts)
212 f cid-x.map
213
214 % the following file is generated by updmap(-sys) from the
215 % KanjiMap entries in the updmap.cfg file.
216 %f kanjix.map
217 % minimal example for Chinese and Korean users
218 % improvements please to [email protected]
219 %f ckx.map
220
221 %% Include other config files
222 %i <filename>