[NTG-context] bug in PDF boxes? (was: Re: Trouble setting PDF boxes))
oinos at gmx.es
Sun Apr 26 11:46:53 CEST 2020
On 4/25/20 2:37 PM, Jack Steyn wrote:
> I am having trouble setting the PDF boxes to my desired dimensions.
> Suppose I have \setuppapersize[/a/][/b/]. I want CropBox = MediaBox
> =/ //b/. So far, so good: I can just use cropoffset=0mm in \setuplayout.
> But I want TrimBox = /a/. However, as far as I can see, I can't achieve
> this using trimoffset in \setuplayout unless (width of /b/) – (width of
> /a/) = (height of /b/) – (height of /a/), which does not hold in my
> case. So it looks like I need to find another way to set the TrimBox
> (and the BleedBox, which I want to be 3mm wider and taller than the
> TrimBox). Does anyone know how to do this?
there seems to be a bug in ConTeXt (both in MkXL and MkIV).
From this code:
I get the relevant code:
/CropBox [ 0 0 595.2756 841.8898 ]
/MediaBox [ 0 0 595.2756 841.8898 ]
/TrimBox [ 0 0 595.2756 841.8898 ]
I think it might be a bug that prevents this from working properly.
(ArtBox is simply disabled.)
Hans, could you check this? Many thanks for your help.
PS: sorry for having changed the subject, Jack. It intends only to
increase visibility about code that may need to be improved.
More information about the ntg-context