summaryrefslogtreecommitdiff
path: root/Master/texmf/dvipdfmx/dvipdfmx.cfg
blob: b8adb6c6f110ac3501f8080be47d9b1991c2f5c9 (plain)
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
%%
%% ** PLEASE CHECK FILE ACCESS PERMISSION OF THIS FILE **
%%
%% With 'D' option dvipdfmx may invoke shell command via system()
%% function call.
%%
%%
%% PDF Version Setting
%%
%% PDF (minor) version stamp to use in output file.
%% This also implies maximal version of PDF file allowed to be included.
%% Dvipdfmx does not support 1.0, 1.1, 1.2 since TrueType font embedded
%% as CIDFontType2 requires at least version 1.3. Transparent imaging
%% model requires version 1.4. So if you want soft-masking support for
%% PNG image with alpha channels, you should set version to 4 or higher.

V  4

%%
%% Dvipdfmx Compatibility Flags
%%
%%   0x0002  Use semi-transparent filling for tpic shading command,
%%           instead of opaque gray color. (requires PDF 1.4)
%%   0x0004  Treat all CIDFont as fixed-pitch font.
%%           This is only for backward compatibility. Don't use that.
%%   0x0008  Do not replace duplicate fontmap entries.
%%           Dvipdfm's (not 'x') behaviour.

%C  0x0000

%%
%% PDF Document Settings
%%
%% Papersize Option:
%%
%%   p papersize-spec
%%
%% papersize-spec is 'paper-format' or length-pair, e.g., 'a4', 'letter',
%% '20cm,30cm'. Recognized unit is 'cm', 'mm', 'bp', 'pt', 'in'.
%% 

p  a4

%% Annotation Box Margin:
%%
%%   g length
%%
%% Add margin to annotation rectangle created via various \specials. Many
%% TeX macro packages set the annotation bounding box equal to the TeX box
%% that encloses the material. That's not always what you want.
%% Annotations created by pdf:bannot/pdf:eannot is also affected.
%%
%% Bookmark Open Level:
%%
%%   O integer
%%
%% Mark bookmark (outline) item as initial state 'open' if the depth
%% of that item (from root node) is less than or equal to the integer
%% specified with this option.

g  1
O  0

%%
%% PDF Security (Encryption) Setting
%%
%% Those options won't take effects unless you use flag 'S'.
%%
%% Key bits for PDF encryption (40 - 128)

K  40

%% Permission flag for PDF encryption: Revision will be 3 if the key size
%% is greater than 40 bits.
%%
%% 0x0004 (Revision 2) Print the document.
%%        (Revision 3) Print the document (possibly not at the highest quality
%%        level, depending on whether bit 12[0x0800] is also set).
%% 0x0008 Modify the contents of the document by operations other than those
%%        controlled by bits 6[0x0020], 9[0x0100], and 11[0x0400].
%% 0x0010 (Revision 2) Copy or otherwise extract text and graphics from the
%%        document, including extracting text and graphics (in support of
%%        accessibility to disabled users or for other purposes).
%%        (Revision 3) Copy or otherwise extract text and grphics from the
%%        document by operations other than that controlled by bit 10[0x0200].
%% 0x0020 Add or modify text annotations, fill in interactive form fields,
%%        and, if bit 4[0x0008] is also set, create or modify interactive
%%        form fields (including signature fields).
%%
%% (Revision 3 only)
%% 0x0100 Fill in existing interactive form fields (including signature
%%        fields), even if bit 6 is clear.
%% 0x0200 Extract text and graphics (in support of accessibility to disabled
%%        users or for other purposes).
%% 0x0400 Assemble the document (insert, rotate, or delete pages and create
%%        bookmarks or thumbnail images), even if bit 4 is clear.
%% 0x0800 Print the document to a representation from which a faithful digital
%%        copy of the PDF content could be generated. When this bit is clear
%%        (and bit 3 is set), printing is limited to a low-level representation
%%        of the appearance, possibly of degraded quality.

P  0x003C

%%
%% Image Handler
%%
%% Command-line template for a-to-b conversion:
%%
%% Supported target format ('b') is currently PDF.
%% Percent sign '%' is special character:
%%
%%   %i  Input file name (FQPN). Name of file to be converted to PDF.
%%   %o  Output file name (FQPN). Temporary file to store conversion
%%       result. Removed after inclusion is finished. (regardless of
%%       success or failure)
%%   %b  The "base" name of the input file, e.g., "foo" instead of
%%       "foo.eps".
%%   %%  Replaced with single '%'.

%% *Examples* for GhostScript (PS-to-PDF)
%%
%% The following example decode all DCT (i.e., JPEG) encoded images
%% and then recompress images with Flate (zlib, same as PNG) encode
%% filter. If you are using recent version of gs, then please remove
%% -dAutoFilterXXXImages and -dXXXImageFilter. 
%% /FlateEncode is introduced to avoid quality loss of "EPS JPEG"
%% images.
%%
%% Also note that PAPERSIZE=a0 is specified below. This convert PS
%% files (including EPS) to A0 papersize PDF. This is necessary to
%% prevent gs from clipping PS figure at some papersize. (A0 above
%% simply means large size paper)
%%
%% If you have figures even larger than A0, and their llx=lly=0, you can
%% use -dEPSCrop instead of -sPAPERSIZE=a0

%% Ghostscript (TeX Live -- both Unix and Windows)
%% keep this the same in dvipdfm and dvipdfmx.
%% can't use zcat because the pipe breaks on Windows; better to have
%% one config file.
D  "rungs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile=%o %i -c quit"

%% Ghostscript (Unix/Linux):
%D  "gs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile=%o %i -c quit"

%% Ghostscript (Win32):
%D  "gswin32c -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile=%o %i -c quit"

%% Ghostscript (TeX Live -- both Unix and Windows)
%% keep this 
D  "rungs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile=%o %i -c quit"

%% Frank Siegert's PStill:
%D  "/usr/local/bin/pstill -c -o %o %i"

%% Adobe Acrobat Distiller:
%D  "/usr/local/bin/distill -quiet -pairs %i %o"

%% Batik + Fop (SVG-to-PDF):
%% If you want both PS and SVG, you need to write a script or program
%% that selectively invokes converters.
%D  "java -classpath classpaths -jar /path/to/batik-rasterizer.jar -m application/pdf -d %o %i"

%% There are no way to directly know suggested size of (raster) images.
%% You may want to use %b here, since you can try reading the ebb file
%% to see what is natural (physical) size of images. 
%D  "ras2pdf -r 300x300 -b %b.bb -o %o %i"

%% ImageMagick:
%% Easiest way to support various file formats.
%D  "convert %i epdf:%o"

%% Other Options
%%
%% DPI for PK font creation

%r  600

%% Set number of fractional digit kept for various numbers in PDF page
%% content output. By setting this to 2 (default), dvipdfmx rounds
%% real numbers at 2nd fractional (decimal) digit; e.g., "3.14159" is
%% written as "3.14". Increasing this to more than 2 isn't meaningful
%% for old Acrobat due to implementation limit of Acrobat.
%% Length 0.01 in unscaled coordinate system amount to width of 1 pixel
%% in 7200ppi display. 

%d  5

%%
%% Font Map Files
%%

% For correct searching / text extraction of ligatures, etc., of cm
% fonts, which are given without an encoding in the map files.  However,
% if the latin modern fonts are desired/used instead of bluesky, this
% won't be needed and should be removed.
f cm-dvipdfm-fix.map

%% teTeX 2.x using updmap

f  dvipdfm.map

%% MiKTeX 2.2 and 2.3

%f psfonts.map

%% Put additonal fontmap files here
f  cid-x.map