From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: bug in PDF boxes? (was: Re: Trouble setting PDF boxes))
Date: Sun, 26 Apr 2020 11:46:53 +0200 [thread overview]
Message-ID: <3f4883c8-5296-2d0b-7d2f-dd27915e6b5d@gmx.es> (raw)
In-Reply-To: <CAA=DcJEbQdsU6yFBOBPup2WUk0wYh4_NnXAh79K9kHnvQcdLAw@mail.gmail.com>
On 4/25/20 2:37 PM, Jack Steyn wrote:
> Hi,
>
> I am having trouble setting the PDF boxes to my desired dimensions.
> Suppose I have \setuppapersize[/a/][/b/]. I want CropBox = MediaBox
> =/ //b/. So far, so good: I can just use cropoffset=0mm in \setuplayout.
> But I want TrimBox = /a/. However, as far as I can see, I can't achieve
> this using trimoffset in \setuplayout unless (width of /b/) – (width of
> /a/) = (height of /b/) – (height of /a/), which does not hold in my
> case. So it looks like I need to find another way to set the TrimBox
> (and the BleedBox, which I want to be 3mm wider and taller than the
> TrimBox). Does anyone know how to do this?
Hi Jack,
there seems to be a bug in ConTeXt (both in MkXL and MkIV).
From this code:
\setuplayout
[cropoffset=15ex,
trimoffset=20ex,
bleedoffset=25ex,
artoffset=30ex]
\starttext
\input zapf
\stoptext
I get the relevant code:
/CropBox [ 0 0 595.2756 841.8898 ]
/MediaBox [ 0 0 595.2756 841.8898 ]
/TrimBox [ 0 0 595.2756 841.8898 ]
I think it might be a bug that prevents this from working properly.
(ArtBox is simply disabled.)
Hans, could you check this? Many thanks for your help.
Pablo
PS: sorry for having changed the subject, Jack. It intends only to
increase visibility about code that may need to be improved.
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-04-26 9:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-25 12:37 Trouble setting PDF boxes Jack Steyn
2020-04-25 16:42 ` Jack Steyn
2020-04-30 15:51 ` Jack Steyn
2020-04-30 19:44 ` Hans Hagen
2020-05-01 1:55 ` Jack Steyn
2020-04-26 9:46 ` Pablo Rodriguez [this message]
2020-04-26 14:43 ` bug in PDF boxes? (was: Re: Trouble setting PDF boxes)) Jack Steyn
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=3f4883c8-5296-2d0b-7d2f-dd27915e6b5d@gmx.es \
--to=oinos@gmx.es \
--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).