[Dev-luatex] mediabox accuracy

Hans Hagen pragma at wxs.nl
Sat Feb 19 23:58:12 CET 2011


On 19-2-2011 3:04, Peter Rolf wrote:
> Hi,
>
> 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.

this probably does not belong here (e.g. trimbox etc are written by the 
macro package) so best move this thread to the context list


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-luatex mailing list