[pdftex] Double MediaBox in pdflatex output

Altmann, Michael ma at aie.de
Thu Feb 9 13:19:05 CET 2017


Hi,

when preparing PDF files for a printing house, a bleed box has to be 
included in the file, and the media box has to be increased 
appropriately. If I supply a custom MediaBox with \pdfpageattr, the 
MediaBox appears twice in the pdf output. It is easy to remove one 
MediaBox manually, but this is error prone.

I've created a minimal example:

\documentclass{article}

\pdfcompresslevel 0

\pdfpageattr{

/MediaBox [-8.50394 -8.50394 603.77953 850.39370]^^J

/BleedBox [-8.50394 -8.50394 603.77953 850.39370]^^J

/CropBox [0 0 595.27559 841.88976]^^J

/TrimBox [0.00000 0.00000 595.27559 841.88976]

}

\begin{document}

Some text.

\end{document}


pdflatex yields:


...
<snip>
<<

/Producer (pdfTeX-1.40.17)
/Creator (TeX)
/CreationDate (D:20170209130229+01'00')
/ModDate (D:20170209130229+01'00')
/Trapped /False
/PTEX.Fullbanner (This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX 
Live 2016/W32TeX) kpathsea version 6.2.2)

 >>
</snip>

...
<snip>

<<
/Type /Page
/Contents 3 0 R
/Resources 1 0 R
/MediaBox [0 0 595.276 841.89]
  /MediaBox [-8.50394 -8.50394 603.77953 850.39370]
  /BleedBox [-8.50394 -8.50394 603.77953 850.39370]
  /CropBox [0 0 595.27559 841.88976]
  /TrimBox [0.00000 0.00000 595.27559 841.88976]
/Parent 6 0 R
 >>
</snip>

...

Is this a bug or do I miss something? Is there a way to suppress the 
first MediaBox?

Thanks & BR

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pdftex/attachments/20170209/13ee6097/attachment.html>


More information about the pdftex mailing list