Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

Can't open libHaru-generated PDF with Reader, other readers work.

$
0
0

Our application uses libHaru to export PDF images.  These PDFs can be opened using PDFlite on Windows, Preview on Mac and some other readers.  However, I have tried several versions of Adobe Reader on both platforms and the files fail to open with the message: "There was an error processing a page.  There was a problem reading this document (14)."   So, it seams that Adobe Reader believes that there is problem with this file.  However, from my very limited understanding of PDF structure, I have no idea what might be wrong, so I don't know how to fix it.  The file is written unencrypted.  It is about as simple a PDF as we can generate - a red-filled rectangle.  I would greatly appreciate any suggestions or help.

 

 

Here is a sample PDF:

 

 

%PDF-1.3

%∑æ≠™

1 0 obj

<<

/Type /Catalog

/Pages 2 0 R

>>

endobj

2 0 obj

<<

/Type /Pages

/Kids [ 4 0 R ]

/Count 1

>>

endobj

3 0 obj

<<

/Producer (Haru Free PDF Library 2.3.0-dev)

>>

endobj

4 0 obj

<<

/Type /Page

/MediaBox [ 0 0 236 207 ]

/Contents 5 0 R

/Resources <<

/ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]

/Pattern <<

/Type /Pattern

/PatternType 1

/PaintType 2

/TilingType 2

/BBox [ 0 0 100 100 ]

/XStep 100

/YStep 100

>>

>>

/Parent 2 0 R

>>

endobj

5 0 obj

<<

/Length 6 0 R

>>

stream

 

1 0 0 -1 -118 296 cm

1 w

0 0 0 RG

[] 0 d

1 0.3 0.3 rg

q

% Rect

119.25 90 m

352.5 90 l

352.5 294.75 l

119.25 294.75 l

119.25 90 l

h

B

Q

 

endstream

endobj

6 0 obj

135

endobj

xref

0 7

0000000000 65535 f

0000000015 00000 n

0000000064 00000 n

0000000123 00000 n

0000000188 00000 n

0000000458 00000 n

0000000647 00000 n

trailer

<<

/Root 1 0 R

/Info 3 0 R

/Size 7

>>

startxref

666

%%EOF


Viewing all articles
Browse latest Browse all 46145

Trending Articles