Package org.pdfclown.tokens

Examples of org.pdfclown.tokens.XRefEntry


      modifiedObjects.put(
        lastObjectNumber,
        new PdfIndirectObject(
          this.file,
          null,
          new XRefEntry(
            lastObjectNumber,
            XRefEntry.GenerationUnreusable,
            0,
            XRefEntry.UsageEnum.Free
            )
View Full Code Here


    // Wrap the data object inside a new indirect object!
    lastObjectNumber++;
    PdfIndirectObject indirectObject = new PdfIndirectObject(
      file,
      object,
      new XRefEntry(
        lastObjectNumber,
        0,
        0,
        XRefEntry.UsageEnum.InUse
        )
View Full Code Here

    if(object == null)
    {
      object = wokenObjects.get(index);
      if(object == null)
      {
        XRefEntry xrefEntry = xrefEntries.get(index);
        if(xrefEntry == null)
        {
          if(index > lastObjectNumber)
            return null;

          /*
            NOTE: The cross-reference table (comprising the original cross-reference section and all update sections)
            MUST contain one entry for each object number from 0 to the maximum object number used in the file, even
            if one or more of the object numbers in this range do not actually occur in the file.
            However, for resilience purposes missing entries are treated as free ones.
          */
          xrefEntries.put(
            index,
            xrefEntry = new XRefEntry(
              index,
              XRefEntry.GenerationUnreusable,
              0,
              XRefEntry.UsageEnum.Free
              )
View Full Code Here

    */
    return update(
      new PdfIndirectObject(
        file,
        null,
        new XRefEntry(
          index,
          XRefEntry.GenerationUnreusable,
          0,
          XRefEntry.UsageEnum.Free
          )
View Full Code Here

TOP

Related Classes of org.pdfclown.tokens.XRefEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.