From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: Re: ConTeXt ignores crop in some pdf graphics
Date: Tue, 4 Sep 2018 22:40:32 +0200 [thread overview]
Message-ID: <a9bd97ab-d357-9866-83db-0a977edd4721@fiee.net> (raw)
In-Reply-To: <da699282-c586-dd8a-f5ea-3deacf5a3ede@gmx.es>
Am 04.09.2018 um 21:22 schrieb Pablo Rodriguez:
> On 09/04/2018 09:00 AM, Henning Hraban Ramm wrote:
>> Hi Mari,
>> I can confirm the same behaviour with graphics from other sources like
>> Illustrator - seems like ConTeXt doesn't use the CropBox (visible size)
>> any more, but the MediaBox (full sheet). Or maybe the TrimBox (cut size).
>> It would make sense to have than configurable, but the change in
>> behaviour is really inconvenient.
>
> Hi Mari and Hraban,
>
> I have just discovered that \setupexternalfigure has a "size" option
> with values "none media crop trim art".
>
> They don’t seem to work, but I wonder whether this might be the
> configuration command that you are looking for (which might have a bug).
Hi Pablo,
Hans investigated and could trace my problem to an Acrobat bug (or at
least it doesn't adhere to the PDF specs): I had my logo exported from
Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if
you don't "save as", Acrobat creates a XForm inside a page, but doesn't
set the boxes correctly for the page (CropBox missing, Artbox was what I
needed).
While all(?) viewers work around this, ConTeXt's new PDF handler, the
ppl library, adheres strictly to the PDF specs and falls back to
MediaBox if CropBox is missing.
I tried size=artbox and box=artbox, but size=art actually does what I
need - thanks for the hint!
Greetlings, Hraban
___________________________________________________________________________________
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:[~2018-09-04 20:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-03 15:31 Mari Voipio
2018-09-04 7:00 ` Henning Hraban Ramm
2018-09-04 19:22 ` Pablo Rodriguez
2018-09-04 20:40 ` Henning Hraban Ramm [this message]
2018-09-05 14:37 ` Pablo Rodriguez
2018-09-05 15:01 ` luigi scarso
2018-09-05 17:56 ` Mari Voipio
2018-09-05 20:08 ` Pablo Rodriguez
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=a9bd97ab-d357-9866-83db-0a977edd4721@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).