Skip to main content
roadRunner489
Participant
January 20, 2018
Question

Adobe Reader DC does not display pdf objects having reused object numbers

  • January 20, 2018
  • 1 reply
  • 859 views

When the sample pdf file built by successive updates in Appendix G of the PDF Reference v 1.7  (G.6.1-G.6.4) is open by the Adobe Reader DC (or Acrobat DC) the annotations added in Stage 4 having reused pdf object numbers (8, 9) are not shown. The other annotation having a new object number (12) is shown.

However, if new object numbers are given to the annotations instead of reusing the numbers of deleted objects in Stage 3, then all annotations are shown.

Imho, the original example seems to be correct, why are the annotations reusing object numbers not shown?

Using this update instead of the one shown in the PDF Reference displays all annotations correctly (remove empty lines if you cut and paste):

7 0 obj

[ 10 0 R

11 0 R

13 0 R

14 0 R

12 0 R

]

endobj

13 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 58 657 172 742 ]

/Contents ( New Text #1 )

/Open true

>>

endobj

14 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 389 459 570 537 ]

/Contents ( New Text #2 )

/Open false

>>

endobj

12 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 44 253 473 337 ]

/Contents ( New Text #5\203a longer text annotation which we will continue \

onto a second line )

/Open true

>>

endobj

xref

0 1

0000000000 65535 f

7 3

0000001860 00000 n

12 3

0000002140 00000 n

0000001914 00000 n

0000002026 00000 n

trailer

<< /Size 13

/Root 1 0 R

/Prev 1704

>>

startxref

2320

%%EOF

If you want to check, this is the example file from the PDF Reference (remove empty lines if you cut and paste):

%PDF-1.4

1 0 obj

<< /Type /Catalog

/Outlines 2 0 R

/Pages 3 0 R

>>

endobj

2 0 obj

<< /Type /Outlines

/Count 0

>>

endobj

3 0 obj

<< /Type /Pages

/Kids [ 4 0 R ]

/Count 1

>>

endobj

4 0 obj

<< /Type /Page

/Parent 3 0 R

/MediaBox [ 0 0 612 792 ]

/Contents 5 0 R

/Resources << /ProcSet 6 0 R >>

>>

endobj

5 0 obj

<< /Length 35 >>

stream

%place page marking operators here

endstream

endobj

6 0 obj

[ /PDF ]

endobj

xref

0 7

0000000000 65535 f

0000000009 00000 n

0000000074 00000 n

0000000120 00000 n

0000000179 00000 n

0000000300 00000 n

0000000384 00000 n

trailer

<< /Size 7

/Root 1 0 R

>>

startxref

408

%%EOF

4 0 obj

<< /Type /Page

/Parent 3 0 R

/MediaBox [ 0 0 612 792 ]

/Contents 5 0 R

/Resources << /ProcSet 6 0 R >>

/Annots 7 0 R

>>

endobj

7 0 obj

[ 8 0 R

9 0 R

10 0 R

11 0 R

]

endobj

8 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 44 616 162 735 ]

/Contents ( Text #1 )

/Open true

>>

endobj

9 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 224 668 457 735 ]

/Contents ( Text #2 )

/Open false

>>

endobj

10 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 239 393 328 622 ]

/Contents ( Text #3 )

/Open true

>>

endobj

11 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 34 398 225 575 ]

/Contents ( Text #4 )

/Open false

>>

endobj

xref

0 1

0000000000 65535 f

4 1

0000000604 00000 n

7 5

0000000739 00000 n

0000000784 00000 n

0000000891 00000 n

0000001000 00000 n

0000001109 00000 n

trailer

<< /Size 12

/Root 1 0 R

/Prev 408

>>

startxref

1218

%%EOF

10 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 239 393 328 622 ]

/Contents ( Modified Text #3 )

/Open true

>>

endobj

xref

0 1

0000000000 65535 f

10 1

0000001434 00000 n

trailer

<< /Size 12

/Root 1 0 R

/Prev 1218

>>

startxref

1552

%%EOF

7 0 obj

[ 10 0 R

11 0 R

]

endobj

xref

0 1

0000000008 65535 f

7 3

0000001671 00000 n

0000000009 00001 f

0000000000 00001 f

trailer

<< /Size 12

/Root 1 0 R

/Prev 1552

>>

startxref

1704

%%EOF

7 0 obj

[ 10 0 R

11 0 R

8 1 R

9 1 R

12 0 R

]

endobj

8 1 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 58 657 172 742 ]

/Contents ( New Text #1 )

/Open true

>>

endobj

9 1 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 389 459 570 537 ]

/Contents ( New Text #2 )

/Open false

>>

endobj

12 0 obj

<< /Type /Annot

/Subtype /Text

/Rect [ 44 253 473 337 ]

/Contents ( New Text #5\203a longer text annotation which we will continue \

onto a second line )

/Open true

>>

endobj

xref

0 1

0000000000 65535 f

7 3

0000001860 00000 n

0000001912 00001 n

0000002023 00001 n

12 1

0000002136 00000 n

trailer

<< /Size 13

/Root 1 0 R

/Prev 1704

>>

startxref

2320

%%EOF

This topic has been closed for replies.

1 reply

Legend
February 8, 2018

PDF files are not text, and treating them as such is likely to lead to egregious errors. (Rebuilding a bad file could easily lose your incremental updates). So never make them with copy/paste. This isn't really about the Acrobat SDK, but you could maybe share the file (via a file sharing site of your own, not through the forum) and someone might be interested to take a look.