ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Set PDF TrimBox
Date: Fri, 21 Aug 2015 18:53:05 +0200	[thread overview]
Message-ID: <55D75771.8090802@wxs.nl> (raw)
In-Reply-To: <3AF62401-B76E-40DA-895F-B75492865C06@fiee.net>

On 8/16/2015 6:33 AM, Henning Hraban Ramm wrote:
> Hi Hans,
>
> in May Harald König asked about setting the TrimBox value in PDFs and provided even a patch for lpdf-mis.lua; you promised to look into that, see http://article.gmane.org/gmane.comp.tex.context/91544/
>
> If there’s only one paper size (from \setuppapersize), TrimBox is the same as CropBox.
>
> If there’s a second paper size (like from \setuppapersize[A4][B4]), TrimBox is the first.
>
> At least if there’s "marking=on|color|..." in \setuplayout, please also set BleedBox, even if we can’t influence the bleed value.
>
> Would be nice if there would be an option to let CropBox be the same as TrimBox or BleedBox.
>
> We don’t need ArtBox (in PDF/X it must not differ from TrimBox, if defined).
>
> Could you please implement this? Should be really easy…
> I’m tired of fixing the boxes in Acrobat every time.
> Thank you very much!

The next beta will have this extra 'feature':

\showframe

\setuplayout
   [location=middle,
    width=middle,
    height=middle,
    cropoffset=auto,
    trimoffset=1bp,
    bleedoffset=2bp,
    artoffset=2bp]

\starttext

\definepapersize[TestA][width=100bp,height=200bp]
\definepapersize[TestB][width=150bp,height=250bp]

\setuppapersize[TestA][TestB]

test

\stoptext

The auto option only works with layout=middle (message otherwise) as I'm 
not going to add all kind of extra calculation code to an already bit 
overloaded mechanism deep down. The offset are accumulative (so crop < 
trim < bleed < art). In Haralds case cropoffset=auto should be enough. 
The default crop and trimbox handling is unchanged (as it would 
complicate my own workflows and also breaks compatibility) so one really 
needs to set this when it's needed. The already present 
interactionscreen cropping is unchanged.

Hans


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2015-08-21 16:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-16  4:33 Henning Hraban Ramm
2015-08-21 16:53 ` Hans Hagen [this message]
2015-08-23 14:49   ` Henning Hraban Ramm
2015-08-24  8:21     ` Hans Hagen
2015-08-24  8:32       ` Henning Hraban Ramm
2015-08-27  8:34         ` Henning Hraban Ramm
2015-08-27  9:29           ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55D75771.8090802@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).