[NTG-context] ConTeXt ignores crop in some pdf graphics

luigi scarso luigi.scarso at gmail.com
Wed Sep 5 17:01:55 CEST 2018


On Wed, Sep 5, 2018 at 4:37 PM Pablo Rodriguez <oinos at 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?
>

we are working to extend luatex to manage these situations.


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180905/cb1b22bb/attachment.html>


More information about the ntg-context mailing list