1
%% dvipdfmx.cfg for xdvipdfmx (xetex). (Public domain.)
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.
14
%% Dvipdfmx Compatibility Flags
16
%% 0x0002 Use semi-transparent filling for tpic shading command,
17
%% instead of opaque gray color. (requires PDF 1.4)
18
%% 0x0004 Treat all CIDFont as fixed-pitch font.
19
%% This is only for backward compatibility. Don't use that.
20
%% 0x0008 Do not replace duplicate fontmap entries.
21
%% Dvipdfm's (not 'x') behaviour.
26
%% PDF Document Settings
32
%% papersize-spec is 'paper-format' or length-pair, e.g., 'a4', 'letter',
33
%% '20cm,30cm'. Recognized unit is 'cm', 'mm', 'bp', 'pt', 'in'.
37
%% Annotation Box Margin:
41
%% Add margin to annotation rectangle created via various \specials. Many
42
%% TeX macro packages set the annotation bounding box equal to the TeX box
43
%% that encloses the material. That's not always what you want.
44
%% Annotations created by pdf:bannot/pdf:eannot is also affected.
48
%% Bookmark Open Level:
52
%% Mark bookmark (outline) item as initial state 'open' if the depth
53
%% of that item (from root node) is less than or equal to the integer
54
%% specified with this option.
58
%% PDF Security (Encryption) Setting
60
%% Those options won't take effects unless you use flag 'S'.
62
%% Key bits for PDF encryption (40 - 128)
66
%% Permission flag for PDF encryption: Revision will be 3 if the key size
67
%% is greater than 40 bits.
69
%% 0x0004 (Revision 2) Print the document.
70
%% (Revision 3) Print the document (possibly not at the highest quality
71
%% level, depending on whether bit 12[0x0800] is also set).
72
%% 0x0008 Modify the contents of the document by operations other than those
73
%% controlled by bits 6[0x0020], 9[0x0100], and 11[0x0400].
74
%% 0x0010 (Revision 2) Copy or otherwise extract text and graphics from the
75
%% document, including extracting text and graphics (in support of
76
%% accessibility to disabled users or for other purposes).
77
%% (Revision 3) Copy or otherwise extract text and grphics from the
78
%% document by operations other than that controlled by bit 10[0x0200].
79
%% 0x0020 Add or modify text annotations, fill in interactive form fields,
80
%% and, if bit 4[0x0008] is also set, create or modify interactive
81
%% form fields (including signature fields).
84
%% 0x0100 Fill in existing interactive form fields (including signature
85
%% fields), even if bit 6 is clear.
86
%% 0x0200 Extract text and graphics (in support of accessibility to disabled
87
%% users or for other purposes).
88
%% 0x0400 Assemble the document (insert, rotate, or delete pages and create
89
%% bookmarks or thumbnail images), even if bit 4 is clear.
90
%% 0x0800 Print the document to a representation from which a faithful digital
91
%% copy of the PDF content could be generated. When this bit is clear
92
%% (and bit 3 is set), printing is limited to a low-level representation
93
%% of the appearance, possibly of degraded quality.
99
%% With 'D' option dvipdfmx may invoke shell command via system()
102
%% Command-line template for a-to-b conversion:
104
%% Supported target format ('b') is currently PDF.
105
%% Percent sign '%' is special character:
107
%% %i Input file name (FQPN). Name of file to be converted to PDF.
108
%% %o Output file name (FQPN). Temporary file to store conversion
109
%% result. Removed after inclusion is finished. (regardless of
110
%% success or failure)
111
%% %b The "base" name of the input file, e.g., "foo" instead of
113
%% %% Replaced with single '%'.
115
%% Ghostscript (PS-to-PDF)
117
%% ps2pdf is a front-end to gs. For a complete list of options, see
118
%% http://ghostscript.com/doc/current/Ps2pdf.htm#Options
120
%% By default, gs encodes all images contained in a PS file using
121
%% the lossy DCT (i.e., JPEG) filter. This often leads to inferior
122
%% result (see the discussion at http://electron.mit.edu/~gsteele/pdf/).
123
%% The "-dAutoFilterXXXImages" and "-dXXXImageFilter" options used
124
%% below force all images to be encoded with the lossless Flate (zlib,
125
%% same as PNG) filter. Note that if the PS file already contains DCT
126
%% encoded images (which is possible in PS level 2), then these images
127
%% will also be re-encoded using Flate. To turn the conversion off,
128
%% simply remove the options mentioned above.
130
%% Also note that PAPERSIZE=a0 is specified below. This converts PS
131
%% files (including EPS) to A0 papersize PDF. This is necessary to
132
%% prevent gs from clipping PS figure at some papersize. (A0 above
133
%% simply means large size paper.) If you have figures even larger
134
%% than A0, and their llx=lly=0, you can use "-dEPSCrop" instead of
138
%% Frank Siegert's PStill:
139
%D "/usr/local/bin/pstill -c -o %o %i"
141
%% Batik + Fop (SVG-to-PDF):
142
%% If you want both PS and SVG, you need to write a script or program
143
%% that selectively invokes converters.
144
%D "java -classpath classpaths -jar /path/to/batik-rasterizer.jar -m application/pdf -d %o %i"
146
%% There are no way to directly know suggested size of (raster) images.
147
%% You may want to use %b here, since you can try reading the ebb file
148
%% to see what is natural (physical) size of images.
149
%D "ras2pdf -r 300x300 -b %b.bb -o %o %i"
152
%% Easiest way to support various file formats.
153
%D "convert %i epdf:%o"
157
%% DPI for PK font creation
161
%% Set number of fractional digit kept for various numbers in PDF page
162
%% content output. By setting this to 2 (default), dvipdfmx rounds
163
%% real numbers at 2nd fractional (decimal) digit; e.g., "3.14159" is
164
%% written as "3.14". Increasing this to more than 2 isn't meaningful
165
%% for old Acrobat due to implementation limit of Acrobat.
166
%% Length 0.01 in unscaled coordinate system amount to width of 1 pixel
167
%% in 7200ppi display.
173
%% teTeX 2.x and TeX Live using updmap (pdfTeX format)
176
%% teTeX 2.x and TeX Live using updmap (DVIPDFM format)
179
%% teTeX 2.x and TeX Live using updmap (DVIPS format)
180
%% MiKTeX 2.2 and 2.3
183
%% Put additonal fontmap files here