Hi Hans, using that produces a pdf which fails compliance with PDF/X-1a as
the BleedBox is not set. But notice that if it did work, the sizes of
TrimBox and BleedBox would be based off printpaperwidth and
printpaperheight. I need them to be based off paperwidth and paperheight
(for my documents all have printpaperwidth – paperwidth ≠ printpaperheight
– paperheight).

(Apologies, I initially replied to just you and not the list as well.)

On Fri, 1 May 2020 at 05:44, Hans Hagen <j.ha...@xs4all.nl> wrote:

> 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
> -----------------------------------------------------------------
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to