ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: ConTeXt ignores crop in some pdf graphics
Date: Wed, 5 Sep 2018 16:37:10 +0200	[thread overview]
Message-ID: <e0b7ec77-8345-9922-378d-fde508c77d06@gmx.es> (raw)
In-Reply-To: <a9bd97ab-d357-9866-83db-0a977edd4721@fiee.net>

On 09/04/2018 10:40 PM, Henning Hraban Ramm wrote:
> [...]
> 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).

Hi Hraban,

the document sent by Mari (ex.pdf) contains the following information:

    4 0 obj

    <<

      /CropBox [ 265.961 392.102 329.315 445.535 ]

      /Parent 2 0 R

      /Contents 5 0 R

      /BleedBox [ 265.961 392.102 329.315 445.535 ]

      /MediaBox [ -9 -9 604.276 850.89 ]

      /TrimBox [ 265.961 392.102 329.315 445.535 ]

      /Resources <<

        /ProcSet [ /PDF ]

        /ExtGState <<

          /GS6 6 0 R

        >>

      >>

      /Type /Page

    >>

    endobj


I would say, that in the following sample:

    \starttext

    \externalfigure[ex.pdf][size=crop]

    \stoptext


the option "size" doesn’t seem to work.

Or is the original ex.pdf document flawed?

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

  reply	other threads:[~2018-09-05 14:37 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
2018-09-05 14:37       ` Pablo Rodriguez [this message]
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=e0b7ec77-8345-9922-378d-fde508c77d06@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).