[Dev-luatex] mediabox accuracy

Peter Rolf indiego at gmx.net
Sat Feb 19 15:04:27 CET 2011


I have a preflighting problem caused by a badly rounded (too small)
mediabox. This following snippet is taken from that pdf.

93 0 obj
/Type /Page
/Contents 94 0 R
/Resources 92 0 R
/MediaBox [0 0 923.24 585.99]
/TrimBox [ 0.0000 0.0000 923.2440 585.9925 ] /CropBox [ 0.0000 0.0000
923.2440 585.9925 ]
/Parent 98 0 R

The mediabox accuracy is swayed by \pdfdecimaldigits (here
\pdfdecimaldigits=2), while the other boxes use a fixed accuracy (four
points after the digit).
I see two solutions:

1. use the same fixed accuracy for all boxes
2. use the same accuracy given by \pdfdecimaldigits for all boxes

I guess the second solution can still cause problems due to runtime
changes of \pdfdecimaldigits (unless this is a 'write once' register)

Test file (ConTeXt) is attached.

Tested with trunk beta-0.65.0-2011010308 (rev 4050) and
beta-0.66.0-2011021618 (rev 4086) on Windows Vista.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdfboxes.tex
Type: text/x-tex
Size: 460 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/dev-luatex/attachments/20110219/59f11352/attachment.tex>

More information about the dev-luatex mailing list