ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jack Steyn <steynjack@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: bug in PDF boxes? (was: Re: Trouble setting PDF boxes))
Date: Mon, 27 Apr 2020 00:43:06 +1000	[thread overview]
Message-ID: <CAA=DcJGwRuSVu+zB_OidOZ==PE6x1ijnbSEO7q0qUCvxyoexyQ@mail.gmail.com> (raw)
In-Reply-To: <3f4883c8-5296-2d0b-7d2f-dd27915e6b5d@gmx.es>


[-- Attachment #1.1: Type: text/plain, Size: 2447 bytes --]

I would like to add though that even if the code you posted did work
properly, Pablo, it wouldn't solve my original problem. It would be good if
cropoffset, trimoffset etc. took two dimensions, one for the x direction
and one for the y direction, instead of one for both. But I appreciate you
changing the subject to increase visibility.

Jack

On Sun, 26 Apr 2020 at 19:47, Pablo Rodriguez <oinos@gmx.es> wrote:

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

[-- Attachment #1.2: Type: text/html, Size: 3442 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

      reply	other threads:[~2020-04-26 14:43 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 ` bug in PDF boxes? (was: Re: Trouble setting PDF boxes)) Pablo Rodriguez
2020-04-26 14:43   ` Jack Steyn [this message]

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='CAA=DcJGwRuSVu+zB_OidOZ==PE6x1ijnbSEO7q0qUCvxyoexyQ@mail.gmail.com' \
    --to=steynjack@gmail.com \
    --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).