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