ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Set PDF TrimBox
Date: Sun, 23 Aug 2015 20:49:22 +0600	[thread overview]
Message-ID: <5F48E2B0-EB67-4625-9854-28905A1A9A49@fiee.net> (raw)
In-Reply-To: <55D75771.8090802@wxs.nl>

Am 2015-08-21 um 22:53 schrieb Hans Hagen <pragma@wxs.nl>:

> On 8/16/2015 6:33 AM, Henning Hraban Ramm wrote:
>> 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.

Hi Hans, thank you very much for looking into that!
I wikified the box information plus your example at http://wiki.contextgarden.net/PDF_Boxes

Unfortunately, the order (crop < trim < bleed < art) is not so good, it should be (art < crop < trim < bleed) - as I wrote, in PDF/X, ArtBox must be the same as TrimBox, if defined at all. Would you please fix this?

(I don’t know any use of ArtBox - it was meant for imposition, but software will probably look for page contents itself, since ArtBox is mostly undefined.)

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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-23 14:49 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
2015-08-23 14:49   ` Henning Hraban Ramm [this message]
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=5F48E2B0-EB67-4625-9854-28905A1A9A49@fiee.net \
    --to=texml@fiee.net \
    --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).