Hi,
I have the following pdf file and I cannot see page 1 in Adobe Acrobat Reader. I can see it correctly in any other pdf reader.
I need to create a stream with reference to its length (see object 100 and 200) but I could make it work. I followed the pdf spec (page 65) but it's not working.
in page 2, where the length not a reference object, everything is fine.
Please help.
%PDF-1.5
%þ
1 0 obj << /Type /Catalog /Pages 2 0 R >> endobj
2 0 obj << /Type /Pages /MediaBox [0 0 595 842] /CropBox [0 0 595 842] /Resources 3 0 R /Kids [ 010 0 R 011 0 R ] /Count 2 >> endobj
3 0 obj << /Type /Resources /Font << /FH 4 0 R /FHB 5 0 R >> >> endobj
4 0 obj << /Type /Font /Subtype /Type1 /Name /FH /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj
5 0 obj << /Type /Font /Subtype /Type1 /Name /FHB /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj
6 0 obj << /Length 205 >> stream
0.5 0.5 0.5 rg BT /FHB 14 Tf 55 810 Td(xxx) Tj ET BT 55 795 Td(www.xxx.com) Tj ET BT 421 810 Td(yyy) Tj ET BT 421 795 Td(01/01/2015 12:00:04) Tj ET BT /FH 12 Tf 295 30 Td (/1 ) Tj ET 55 790 m 540 790 l S
endstream >> endobj
10 0 obj << /Type /Page /Parent 2 0 R /Contents [6 0 R 200 0 R 100 0 R ] >> endobj
11 0 obj << /Type /Page /Parent 2 0 R /Contents [6 0 R 101 0 R ] >> endobj
100 0 obj << /Length 200 0 R >> stream
BT /FHB 14 Tf 235 750 Td(Page 1)Tj ET
endstream >> endobj
200 0 obj
37
endobj
101 0 obj <</Length 37 >> stream
BT /FHB 14 Tf 235 750 Td(Page 2)Tj ET
endstream >> endobj
xref
0 12
0000000000 65535 f
0000000014 00000 n
0000000064 00000 n
0000000198 00000 n
0000000270 00000 n
0000000378 00000 n
0000000492 00000 n
0000000753 00000 n
0000000837 00000 n
0000000913 00000 n
0000001012 00000 n
0000001035 00000 n
trailer
<</Size 12/Root 1 0 R>>
startxref
1381
%%EOF