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)
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 -----------------------------------------------------------------
Am 2015-08-21 um 22:53 schrieb Hans Hagen
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)
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 -----------------------------------------------------------------
Am 2015-08-24 um 14:21 schrieb Hans Hagen
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)
Am 2015-08-24 um 14:32 schrieb Henning Hraban Ramm
(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)
On 8/27/2015 10:34 AM, Henning Hraban Ramm wrote:
Am 2015-08-24 um 14:32 schrieb Henning Hraban Ramm
: (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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Henning Hraban Ramm