Previous Next


                                              1075
      SECTION G.6                                                       Up dating Example



      The sections following show the segments added to the file at each stage.
      Throughout this example, objects are referred to by their object identifiers, which
      are made up of the object number and the generation number, rather than simply
      by their object numbers as in earlier examples. This is necessary because the ex-
      ample reuses object numbers; therefore, the objects they denote are not unique.

      Note: The tables in these sections show only those objects that are modified during
      the updating process. Objects from Example G.1 that are not altered during the up-
      date are not shown.


G.6.1 Stage 1: Add Four Text Annotations

      Four text annotations are added to the initial file and the file is saved. Table G.4
      lists the objects involved in this update.

                   TABLE G.4 Object usage after adding four text annotations
      OBJECT IDENTIFIER        OBJECT TYPE

      4 0                      Page (page object)

      7 0                      Annotation array

      8 0                      Annot (annotation dictionary)

      9 0                      Annot (annotation dictionary)

      10 0                     Annot (annotation dictionary)

      11 0                     Annot (annotation dictionary)


      Example G.7 shows the lines added to the file by this update. The page object is
      updated because an Annots entry has been added to it. Note that the file’s trailer
      now contains a Prev entry, which points to the original cross-reference section in
      the file, while the startxref value at the end of the trailer points to the cross-
      reference section added by the update.

Previous Next