ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Set PDF TrimBox
@ 2015-08-16  4:33 Henning Hraban Ramm
  2015-08-21 16:53 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2015-08-16  4:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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!

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Set PDF TrimBox
  2015-08-16  4:33 Set PDF TrimBox Henning Hraban Ramm
@ 2015-08-21 16:53 ` Hans Hagen
  2015-08-23 14:49   ` Henning Hraban Ramm
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2015-08-21 16:53 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Set PDF TrimBox
  2015-08-21 16:53 ` Hans Hagen
@ 2015-08-23 14:49   ` Henning Hraban Ramm
  2015-08-24  8:21     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2015-08-23 14:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Set PDF TrimBox
  2015-08-23 14:49   ` Henning Hraban Ramm
@ 2015-08-24  8:21     ` Hans Hagen
  2015-08-24  8:32       ` Henning Hraban Ramm
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2015-08-24  8:21 UTC (permalink / raw)
  To: ntg-context

On 8/23/2015 4:49 PM, Henning Hraban Ramm wrote:

> 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?

hm, one of these fuzzy parts of the spec

> (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.)

i've just commented it as i don't care too much about those boxes anyway

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Set PDF TrimBox
  2015-08-24  8:21     ` Hans Hagen
@ 2015-08-24  8:32       ` Henning Hraban Ramm
  2015-08-27  8:34         ` Henning Hraban Ramm
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2015-08-24  8:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> On 8/23/2015 4:49 PM, Henning Hraban Ramm wrote:
> 
>> 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?
> 
> hm, one of these fuzzy parts of the spec
> 
>> (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.)
> 
> i've just commented it as i don't care too much about those boxes anyway

Good enough, thanks!


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Set PDF TrimBox
  2015-08-24  8:32       ` Henning Hraban Ramm
@ 2015-08-27  8:34         ` Henning Hraban Ramm
  2015-08-27  9:29           ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2015-08-27  8:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2015-08-24 um 14:32 schrieb Henning Hraban Ramm <texml@fiee.net>:

>>> (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.)
>> 
>> i've just commented it as i don't care too much about those boxes anyway
> 
> Good enough, thanks!

Hm, did you mean, you commented the whole code? I’m updating daily, but Acrobat doesn’t show me any boxes.
Or did maybe my update ignore some files? Which should I check?

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Set PDF TrimBox
  2015-08-27  8:34         ` Henning Hraban Ramm
@ 2015-08-27  9:29           ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2015-08-27  9:29 UTC (permalink / raw)
  To: ntg-context

On 8/27/2015 10:34 AM, Henning Hraban Ramm wrote:
> Am 2015-08-24 um 14:32 schrieb Henning Hraban Ramm <texml@fiee.net>:
>
>>>> (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.)
>>>
>>> i've just commented it as i don't care too much about those boxes anyway
>>
>> Good enough, thanks!
>
> Hm, did you mean, you commented the whole code? I’m updating daily, but Acrobat doesn’t show me any boxes.
> Or did maybe my update ignore some files? Which should I check?

i only commented the artbox ...


-----------------------------------------------------------------
                                           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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-27  9:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-16  4:33 Set PDF TrimBox Henning Hraban Ramm
2015-08-21 16:53 ` Hans Hagen
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

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).