[NTG-context] Trouble setting PDF boxes

Hans Hagen j.hagen at xs4all.nl
Thu Apr 30 21:44:08 CEST 2020


On 4/30/2020 5:51 PM, Jack Steyn wrote:
> Hello, I'm happy to report that I got this working after much trawling 
> through the source and documentation. The code below produces a pdf with 
> the MediaBox, CropBox, BleedBox and TrimBox all in the places I 
> specified in my original message. I hope it helps illustrate how to set 
> these PDF boxes using Lua. I would much appreciate any feedback on how 
> the Lua code can be cleaned up or made more flexible (the bleed is 
> hard-coded in because I didn't know how to obtain the user-specified 
> bleedoffset, for example), or made better in any other way.
can you try this

\setuplayout
   [cropoffset=30pt,
    bleedoffset=20pt,
    trimoffset=10pt]

\setupinteractionscreen
   [width=max,height=max]

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


More information about the ntg-context mailing list