Bug#694371: ghostscript: \CropBox on A3 paper- result unreadable to xpdf and evince
Package: ghostscript
Version: 8.71~dfsg2-9
Severity: normal
The following LaTeX document initially displays fine with evince and
xpdf, but after cropping it the resulting file is unusable.
Example:
==[latex_a3_paper.tex]================%<-----------------------------
\documentclass[12pt]{minimal}
\usepackage[a3paper,left=1in,right=1in,top=1in,bottom=1in]{geometry}
\begin{document}
\newsavebox{\sometxt}
\sbox{\sometxt}{\begin{tabular}{@{}l@{}}
One line of text.\\
Another line of text.
\end{tabular}}
\newcommand{\row}{\usebox{\sometxt}\hfill\usebox{\sometxt}\\[5mm]}
\row\row\row\row\row\row
\fbox{Crop Me!!\row}
\row\row\row\row\row\row
\begin{verbatim}
pdflatex latex_a3_paper.tex
gs -sDEVICE=pdfwrite -o latex_a3_paper_cropped.pdf -c "[/CropBox [65 850 303 890] /PAGES pdfmark" -f latex_a3_paper.pdf
\end{verbatim}
\end{document}
================%<-------------------------------------------------
To follow this example, save the text above to a file
"latex_a3_paper.tex". Then run:
pdflatex latex_a3_paper.tex
then:
gs -sDEVICE=pdfwrite -o latex_a3_paper_cropped.pdf -c "[/CropBox [65 850 303 890] /PAGES pdfmark" -f latex_a3_paper.pdf
then:
evince latex_a3_paper_cropped.pdf
<or>
xpdf latex_a3_paper_cropped.pdf
To see latex_a3_paper_cropped.pdf render properly, open it with "gv"
or "emacs".
-- System Information:
Debian Release: 6.0.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ghostscript depends on:
ii debconf [de 1.5.36.1 Debian configuration management sy
ii debianutils 3.4 Miscellaneous utilities specific t
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2 Fonts for the Ghostscript interpre
ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib
ii libgs8 8.71~dfsg2-9 The Ghostscript PostScript/PDF int
ghostscript recommends no packages.
ghostscript suggests no packages.
-- no debconf information
Reply to: