From a14d40377467849bf41ef732a76192c6ec83b2ca Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 7 Jun 2006 21:17:56 +0000 Subject: use -dEPSCrop instead of -sPAPERSIZE=a0 to avoid clipping of very large figures; sent by Laurent Siebenmann git-svn-id: svn://tug.org/texlive/trunk@1666 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/dvipdfm/config/config | 2 +- Master/texmf/dvipdfm/config/config-win32 | 4 ++-- Master/texmf/dvipdfm/dvipdfmx.cfg | 10 ++++------ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Master/texmf/dvipdfm/config/config b/Master/texmf/dvipdfm/config/config index 019a75da53f..175dfac45a9 100644 --- a/Master/texmf/dvipdfm/config/config +++ b/Master/texmf/dvipdfm/config/config @@ -4,7 +4,7 @@ % Distiller config. Uses ghostscript and works on compressed and % uncompressed files. -D "zcat -f %i | gs -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -dSAFER -sOutputFile=%o - -c quit" +D "zcat -f %i | gs -q -dEPSCrop -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -dSAFER -sOutputFile=%o - -c quit" % Set default paper size here p a4 diff --git a/Master/texmf/dvipdfm/config/config-win32 b/Master/texmf/dvipdfm/config/config-win32 index 0283fc7b806..b2e9294c775 100644 --- a/Master/texmf/dvipdfm/config/config-win32 +++ b/Master/texmf/dvipdfm/config/config-win32 @@ -21,9 +21,9 @@ D "epstopdf --outfile=%o --nocompress %i" % The following line works with GhostScript -% D "gs -q -sPAPERSIZE=ledger -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -sOutputFile=%o %i -c quit" +% D "gs -q -dEPSCrop -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -sOutputFile=%o %i -c quit" % The following line works on compressed or uncompressed postscript with GhostScript -%D "zcat -f %i | gs -q -sPAPERSIZE=ledger -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -sOutputFile=%o - -c quit" +%D "zcat -f %i | gs -q -dEPSCrop -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -sOutputFile=%o - -c quit" % The following line works with Adobe Acrobat Distiller % D "/usr/local/bin/distill -quiet -pairs %i %o" diff --git a/Master/texmf/dvipdfm/dvipdfmx.cfg b/Master/texmf/dvipdfm/dvipdfmx.cfg index bfc421dac6f..1411e0b03aa 100644 --- a/Master/texmf/dvipdfm/dvipdfmx.cfg +++ b/Master/texmf/dvipdfm/dvipdfmx.cfg @@ -114,16 +114,14 @@ P 0x003C %% /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) +%% Also note that -dEPSCrop is specified below. This is necessary to +%% prevent gs from clipping PS figure at some papersize. %% %% 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" +D "gs -q -dNOPAUSE -dBATCH -dEPSCrop -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 "gswin32c -q -dNOPAUSE -dBATCH -dEPSCrop -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" -- cgit v1.2.3