Bug 29837 - Reading a PDF through poppler and outputting with cairo removes content
Summary: Reading a PDF through poppler and outputting with cairo removes content
Status: RESOLVED WORKSFORME
Alias: None
Product: cairo
Classification: Unclassified
Component: pdf backend (show other bugs)
Version: 1.8.6
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: Adrian Johnson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 04:14 UTC by michael
Modified: 2010-09-04 04:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
original file (68.27 KB, application/pdf)
2010-08-27 04:14 UTC, michael
Details
output from cairo (8.06 KB, application/pdf)
2010-08-27 04:15 UTC, michael
Details
sample source code for reproducing (2.14 KB, application/octet-stream)
2010-08-27 04:32 UTC, michael
Details

Description michael 2010-08-27 04:14:35 UTC
Created attachment 38217 [details]
original file

Reading a PDF through poppler and outputting with cairo removes content in special cases.

To reproduce the error in a minimal form i've taken the pdf2ps.c demo and replaced the surface creating with cairo_pdf_surface_create(...)

I've narrowed it down to; the error seems to happen when a text block contains the sequence "1A". If i changed that to "1a" no error occured.

I know my cairo version is old, but I have reports it doesn't work on newest stable either, but cannot confirm this.

Attached are bug.pdf - the original sample document, and output.pdf, the output of cairo when simply read/written.
Comment 1 michael 2010-08-27 04:15:16 UTC
Created attachment 38218 [details]
output from cairo
Comment 2 michael 2010-08-27 04:32:35 UTC
Created attachment 38219 [details]
sample source code for reproducing
Comment 3 Andrea Canciani 2010-09-04 04:16:40 UTC
This cannot be reproduced using latest cairo and poppler from git.
Please try using newer versions and reopen if you can still reproduce the problem (specifying what versions you used).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.