From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101824 Path: news.gmane.org!.POSTED!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt ignores crop in some pdf graphics Date: Wed, 5 Sep 2018 17:01:55 +0200 Message-ID: References: <212ff508-e0f7-9bce-62a5-3310ca940c19@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1160497814784806931==" X-Trace: blaine.gmane.org 1536159753 31157 195.159.176.226 (5 Sep 2018 15:02:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2018 15:02:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 05 17:02:29 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxZK7-0007tL-78 for gctc-ntg-context-518@m.gmane.org; Wed, 05 Sep 2018 17:02:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9634E5E496; Wed, 5 Sep 2018 17:04:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S7bjX2PatfAS; Wed, 5 Sep 2018 17:04:18 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D07555E497; Wed, 5 Sep 2018 17:04:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4CC5C5E497 for ; Wed, 5 Sep 2018 17:04:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OX_NR6rEiBx3 for ; Wed, 5 Sep 2018 17:04:16 +0200 (CEST) Original-Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com [209.85.213.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 92C315E496 for ; Wed, 5 Sep 2018 17:04:06 +0200 (CEST) Original-Received: by mail-vk0-f52.google.com with SMTP id e139-v6so2801736vkf.6 for ; Wed, 05 Sep 2018 08:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=tqQ+gw32fX6ti9jpnPsv3FeGEqg6RsE4KDWbIvsLxXs=; b=hDragR6qrRO5japHW0wfZPZhJUIWt0+52H3uOHaODETtIdxbg9d+bivioLbkHEzBrH OdIKb8IZkM6gE3usYvdhtfVuq6wLxEigj30ksXoQVfy8wWA8kmDLrMdbaW+Hdb9QufPl AG72Eq4s3nADcbDOmd4AuSn17CD2NkvANOjBr5Zp5SgSDLihWoMUoDm+pFq9qskj6l+5 yXBMvhT56bxDZPiUjvueKLuZvRJ6ZnOOleEEkm36+98EEk8QOKXxz+0lklcahuoQY0Xm j2czuAc9rcBRd/dxW8VRFQOJQLLp1Z7xQlgHMVXmTyzhU9ZaJhgUhvEr6qIKhwypWsJ1 nIow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=tqQ+gw32fX6ti9jpnPsv3FeGEqg6RsE4KDWbIvsLxXs=; b=YkhpZAvTtPFbcfr0pQdbJiAdRVx4TaPfiK2Qoe2isZoZO38xvE1/Bp/14kD4e+0c3U NZaRq38cK3XYKp1XCAbAhhFfDhdw+WwhuqhbU0z0Pvk0Fj6PLpE/xv3cb49lYRQJ/Jj/ Dwxum/4EWm/YWbxAqfFyjKGkEA0gv9m3x3bSl1mXqmlWLI1+qN2jqdIzpQC9AwGFJKiG NVjwkXrtY15YBJ8Ewyhs6f0TxLgcBKT+wsLCV35uHNrAinQhih7tbULlnc7YcPIYKNdO DeGxid8bWNeywPzaONDWvVD06NrYjdOkDQv+JA+zqSt+an6Agm6m4GpoIT2JjN4JnjaV frgg== X-Gm-Message-State: APzg51DRlJSFfsYinucfDmsciW1Y9Biam3I/vYNB4C8Zw7QZIr4aj3WV SCoalJdakkktfS7UhefluQ/rGIvHf6h6BO1m92TtTAmx X-Google-Smtp-Source: ANB0Vdb1bMhJrV3I/wX6eDhCFeCaXpi0m53SRz3c5I0LIvq6/LVNlwwtoxhhH2vaHXz1dL0x+aS88t+ASZiwmj88XJo= X-Received: by 2002:a1f:9d16:: with SMTP id g22-v6mr18688239vke.5.1536159844699; Wed, 05 Sep 2018 08:04:04 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:101824 Archived-At: --===============1160497814784806931== Content-Type: multipart/alternative; boundary="000000000000dcc5830575211555" --000000000000dcc5830575211555 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Sep 5, 2018 at 4:37 PM Pablo Rodriguez 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=3Dcrop] > > \stoptext > > > the option "size" doesn=E2=80=99t seem to work. > > Or is the original ex.pdf document flawed? > we are working to extend luatex to manage these situations. --=20 luigi --000000000000dcc5830575211555 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed= , Sep 5, 2018 at 4:37 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<= br> > 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 pa= ge, 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:

=C2=A0 =C2=A0 4 0 obj

=C2=A0 =C2=A0 <<

=C2=A0 =C2=A0 =C2=A0 /CropBox [ 265.961 392.102 329.315 445.535 ]

=C2=A0 =C2=A0 =C2=A0 /Parent 2 0 R

=C2=A0 =C2=A0 =C2=A0 /Contents 5 0 R

=C2=A0 =C2=A0 =C2=A0 /BleedBox [ 265.961 392.102 329.315 445.535 ]

=C2=A0 =C2=A0 =C2=A0 /MediaBox [ -9 -9 604.276 850.89 ]

=C2=A0 =C2=A0 =C2=A0 /TrimBox [ 265.961 392.102 329.315 445.535 ]

=C2=A0 =C2=A0 =C2=A0 /Resources <<

=C2=A0 =C2=A0 =C2=A0 =C2=A0 /ProcSet [ /PDF ]

=C2=A0 =C2=A0 =C2=A0 =C2=A0 /ExtGState <<

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /GS6 6 0 R

=C2=A0 =C2=A0 =C2=A0 =C2=A0 >>

=C2=A0 =C2=A0 =C2=A0 >>

=C2=A0 =C2=A0 =C2=A0 /Type /Page

=C2=A0 =C2=A0 >>

=C2=A0 =C2=A0 endobj


I would say, that in the following sample:

=C2=A0 =C2=A0 \starttext

=C2=A0 =C2=A0 \externalfigure[ex.pdf][size=3Dcrop]

=C2=A0 =C2=A0 \stoptext


the option "size" doesn=E2=80=99t seem to work.

Or is the original ex.pdf document flawed?

<= div>we are working to extend luatex to manage these situations.
=

--
luigi
--000000000000dcc5830575211555-- --===============1160497814784806931== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1160497814784806931==--