[NTG-pdftex] [pdftex-Bugs][1751] bounding box ignored?

pdftex-bugs at sarovar.org pdftex-bugs at sarovar.org
Wed Jun 25 09:02:09 CEST 2008


Bugs item #1751, was opened at 2008-06-23 11:28
Status: Open
>Priority: 3
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: Martin Schröder (oneiros)
Date: 2008-06-25 09:02

Message:
Of course the stream dict may contain arbitrary keys; but the input PDF here is IMHO broken; at least it's a borderline case (who needs a /BBox or /Group in a stream dict?).


----------------------------------------------------------------------

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 <oberdiek at uni-freiburg.de>


----------------------------------------------------------------------

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


More information about the ntg-pdftex mailing list