ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mari Voipio <mari.voipio@iki.fi>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ConTeXt ignores crop in some pdf graphics
Date: Wed, 5 Sep 2018 20:56:56 +0300	[thread overview]
Message-ID: <CAGbDsP2MFNBg-XukQy6KH2bE1MseUzPADJO-o8G6BfZs89Pbtw@mail.gmail.com> (raw)
In-Reply-To: <e0b7ec77-8345-9922-378d-fde508c77d06@gmx.es>

[-- Attachment #1: Type: text/plain, Size: 2890 bytes --]

Hello Pablo,

thank you for digging up all of that. What I found out today is that
while a graphic outputted from an old Corel (output e.g. pdf 1.3) has
all that extra whitespace, a graphic outputted from my newish Corel
2017 (pdf 1.7) seems to have  a working cropbox as does the old
graphic recropped with Acrobat as Hraban's Save As trick). I've
included an old graphic (fm.pdf), the same outputted today
(fm_corel_2017) and the old one after recropping it (I reset old
cropbox and cropped again) (fm_cropped), if somebody feels like
investigating further.

While the cropbox problem meant that I had to spend a few hours today
fixing problematic graphics in my big old file, the fact that output
from my current Corel works means that any future graphics will be
fine and I don't have to change my workflows. This reduces the problem
into the level of minor annoyance, assuming it can't be fixed.

Thank you everybody for your help,

Mari
On Wed, Sep 5, 2018 at 5:40 PM Pablo Rodriguez <oinos@gmx.es> wrote:
>
> 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
> ___________________________________________________________________________________

[-- Attachment #2: fm.pdf --]
[-- Type: application/pdf, Size: 6201 bytes --]

[-- Attachment #3: fm_corel_2017.pdf --]
[-- Type: application/pdf, Size: 1986 bytes --]

[-- Attachment #4: fm_cropped.pdf --]
[-- Type: application/pdf, Size: 5680 bytes --]

[-- Attachment #5: fm_test.tex --]
[-- Type: application/octet-stream, Size: 353 bytes --]

\starttext

\placefigure
    [here][]
    {FM approved (old)}
    {\externalfigure[fm][frame=on]}

\page

\placefigure
    [here][]
    {FM approved (Corel 2017)}
    {\externalfigure[fm_corel_2017][frame=on]}

\placefigure
    [here][]
    {FM approved (cropped in Acrobat)}
    {\externalfigure[fm_cropped][frame=on]}


\stoptext

[-- Attachment #6: Type: text/plain, Size: 492 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
___________________________________________________________________________________

  parent reply	other threads:[~2018-09-05 17:56 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
2018-09-05 15:01         ` luigi scarso
2018-09-05 17:56         ` Mari Voipio [this message]
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=CAGbDsP2MFNBg-XukQy6KH2bE1MseUzPADJO-o8G6BfZs89Pbtw@mail.gmail.com \
    --to=mari.voipio@iki.fi \
    --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).