Bugs item #1751, was opened at 2008-06-23 11:28
Status: Open
Priority: 5
Submitted By: Stefan Becuwe (sbecuwe)
Assigned to: Martin Schröder (oneiros)
Summary: bounding box ignored?
Resolution: Accepted
Group: v1.40.3
Category: PDF inclusion
Initial Comment:
Hello,
I've got a problem with a pdf inclusion using includegraphics.
I've made a screendump with Firefox using the "Print to File" option and selected pdf as format. Using Acrobat, I've cropped the figure. In kpdf or acroread the result (attached) looks ok. However, when I create a LaTeX document containing this figure, the output depends on the viewer...: correct output shown in kpdf, incorrect output shown in acroread since cropping is ignored. I also get the following message:
PDF inclusion: Page Group detected which pdfTeX can't handle. Ignoring it.
I don't know whether it's related to the above problem.
Best regards
Stefan
----------------------------------------------------------------------
Comment By: Heiko Oberdiek (oberdiek)
Date: 2008-06-25 00:34
Message:
The /Contents stream object may contain additional
entries, I haven't found something in the PDF specification
that would forbid this.
Therefore the PDF inclusion code needs fixing. Instead
of copying the whole dictionary, this should be limited
to /Length, /Filter, and /DecodeParms. (I assume
external streams aren't supported.)
Patch 1812 contains a patch for pdftoepdf.cc.
The commented variant A recompresses the stream,
controlled by \pdfcompresslevel. Variant B is more
complicate, it copies the needed entries manually
and copies the stream without recompressing.
Yours sincerely
Heiko
----------------------------------------------------------------------
Comment By: Hartmut Henkel (hhenkel)
Date: 2008-06-24 22:21
Message:
right, Martin. Now i see: the page /Contents stream object
no. 3 in crop_problem.pdf looks like an /XObject, but only
/Filter and /Length should be there (or the ones in Table
3.4 of the PDFRef.)
Regards, Hartmut
----------------------------------------------------------------------
Comment By: Hartmut Henkel (hhenkel)
Date: 2008-06-24 20:32
Message:
hmm, there are /BBox entries and /Resources in the many
/Pattern objects, both of which are ok and even required by
the PDF Spec. Also, having the same /Resources in the /Page
and the /XObject dict. should be ok. The crop_problem.pdf
just looks a little weird, but not wrong.
Regards, Hartmut
----------------------------------------------------------------------
Comment By: Martin Schröder (oneiros)
Date: 2008-06-24 16:20
Message:
Can you attach the original PDF from FF?
The content stream dict of crop_problem.pdf has some keys that don't belog there (BBox, Resources)...
----------------------------------------------------------------------
Comment By: Martin Schröder (oneiros)
Date: 2008-06-24 00:54
Message:
Confirmed. We get two BBoxes... :-(
----------------------------------------------------------------------
Comment By: Martin Schröder (oneiros)
Date: 2008-06-23 15:37
Message:
Confirmed. I'm tempted to call it a bug in AR; I'll talk to Adobe.
----------------------------------------------------------------------
Comment By: Stefan Becuwe (sbecuwe)
Date: 2008-06-23 12:58
Message:
I have attached test2-sb.pdf and test2-sb.log.
----------------------------------------------------------------------
Comment By: Martin Schröder (oneiros)
Date: 2008-06-23 12:20
Message:
The page group bug is fixed in 1.40.6, btw.
----------------------------------------------------------------------
Comment By: Martin Schröder (oneiros)
Date: 2008-06-23 12:19
Message:
It works for me. :-)
Can you try the attached test2.tex and attach your pdf and log, please?
----------------------------------------------------------------------
You can respond by visiting:
http://sarovar.org/tracker/?func=detail&atid=493&aid=1751&group_id=106