diff options
Diffstat (limited to 'Build/source/texk/dvipdfmx/data/dvipdfmx.cfg')
-rw-r--r-- | Build/source/texk/dvipdfmx/data/dvipdfmx.cfg | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/Build/source/texk/dvipdfmx/data/dvipdfmx.cfg b/Build/source/texk/dvipdfmx/data/dvipdfmx.cfg index f9537aaca8a..8b7c9d74c53 100644 --- a/Build/source/texk/dvipdfmx/data/dvipdfmx.cfg +++ b/Build/source/texk/dvipdfmx/data/dvipdfmx.cfg @@ -1,10 +1,3 @@ -%% -%% ** 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. @@ -16,7 +9,6 @@ % V 4 -%% %% Dvipdfmx Compatibility Flags %% %% 0x0002 Use semi-transparent filling for tpic shading command, @@ -25,11 +17,11 @@ %% This is only for backward compatibility. Don't use that. %% 0x0008 Do not replace duplicate fontmap entries. %% Dvipdfm's (not 'x') behaviour. -%% 0x0010 Do not remove unused PDF destinations (experimental). +%% 0x0010 Do not optimize PDF destinations. +%% (Optimization is still experimental.) C 0x0010 -%% %% PDF Document Settings %% %% Papersize Option: @@ -50,7 +42,7 @@ p a4 %% that encloses the material. That's not always what you want. %% Annotations created by pdf:bannot/pdf:eannot is also affected. -%g 1 +%g 0 %% Bookmark Open Level: %% @@ -103,6 +95,9 @@ P 0x003C %% Image Handler %% +%% With 'D' option dvipdfmx may invoke shell command via system() +%% function call. +%% %% Command-line template for a-to-b conversion: %% %% Supported target format ('b') is currently PDF. @@ -114,30 +109,32 @@ P 0x003C %% success or failure) %% %b The "base" name of the input file, e.g., "foo" instead of %% "foo.eps". +%% %v The PDF version to be converted to, e.g. "1.4" for PDF 1.4. %% %% Replaced with single '%'. + +%% GhostScript (PS-to-PDF and PDF-to-PDF): %% -%% *Examples* for GhostScript (PS-to-PDF) +%% ps2pdf is a front-end to gs. For a complete list of options, see +%% http://pages.cs.wisc.edu/~ghost/doc/cvs/Ps2pdf.htm#Options %% -%% 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. +%% By default, gs encodes all images contained in a PS file using +%% the lossy DCT (i.e., JPEG) filter. This often leads to inferior +%% result (see the discussion at http://electron.mit.edu/~gsteele/pdf/). +%% The "-dAutoFilterXXXImages" and "-dXXXImageFilter" options used +%% below force all images to be encoded with the lossless Flate (zlib, +%% same as PNG) filter. Note that if the PS file already contains DCT +%% encoded images (which is possible in PS level 2), then these images +%% will also be re-encoded using Flate. To turn the conversion off, +%% simply remove the options mentioned above. %% %% 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 +%% 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 (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" +D "ps2pdf -dCompatibilityLevel=%v -sPAPERSIZE=a0 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode %i %o" %% Frank Siegert's PStill: %D "/usr/local/bin/pstill -c -o %o %i" |