Examples of PdfReference


Examples of org.pdfclown.objects.PdfReference

      countObject.setValue(countObject.getValue()+1);
    }
    else // Non-first bookmark.
    {
      PdfReference oldLastBookmarkReference = (PdfReference)getBaseDataObject().get(PdfName.Last);
      getBaseDataObject().put(PdfName.Last,bookmark.getBaseObject()); // Added bookmark is the last in the collection...
      ((PdfDictionary)File.resolve(oldLastBookmarkReference)).put(PdfName.Next,bookmark.getBaseObject()); // ...and the next of the previously-last bookmark.
      bookmark.getBaseDataObject().put(PdfName.Prev,oldLastBookmarkReference);

      /*
 
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

    Gets the parent bookmark.
  */
  public Bookmark getParent(
    )
  {
    PdfReference reference = (PdfReference)getBaseDataObject().get(PdfName.Parent);
    // Is its parent a bookmark?
    /*
      NOTE: the Title entry can be used as a flag to distinguish bookmark
      (outline item) dictionaries from outline (root) dictionaries.
    */
 
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

        PdfName.StemV,
        new PdfInteger(100)
        );
      // FontFile.
  //TODO:IMPL distinguish between truetype (FontDescriptor.FontFile2) and opentype (FontDescriptor.FontFile3 and FontStream.subtype=OpenType)!!!
      PdfReference fontFileReference = getFile().register(
        new PdfStream(
          new PdfDictionary(
            new PdfName[]{PdfName.Subtype},
            new PdfDirectObject[]{PdfName.OpenType}
            ),
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

    )
  {
    /*
      NOTE: 'Parent' entry may be undefined.
    */
    PdfReference parentObject = (PdfReference)getBaseDataObject().get(PdfName.Parent);
    if(parentObject == null)
      return null;

    return Annotation.wrap(parentObject);
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

      return null;

    /*
      NOTE: key entry may be undefined.
    */
    PdfReference dependencyFilesObject = (PdfReference)dependenciesObject.get(key);
    if(dependencyFilesObject == null)
      return null;

    return new RelatedFiles(dependencyFilesObject,getContainer());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

      return null;

    /*
      NOTE: key entry may be undefined.
    */
    PdfReference embeddedFileObject = (PdfReference)embeddedFilesObject.get(key);
    if(embeddedFileObject == null)
      return null;

    return new EmbeddedFile(embeddedFileObject);
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

    implicitly).</p>
  */
  public Resources getResources(
    )
  {
    PdfReference pagesReference = (PdfReference)getBaseDataObject().get(PdfName.Pages);
    return Resources.wrap(
      ((PdfDictionary)File.resolve(pagesReference)).get(PdfName.Resources),
      pagesReference.getIndirectObject()
      );
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

  */
  public void setResources(
    Resources value
    )
  {
    PdfReference pages = (PdfReference)getBaseDataObject().get(PdfName.Pages);
    ((PdfDictionary)File.resolve(pages)).put(PdfName.Resources, value.getBaseObject());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

          getFile().unregister( // Removes the exceeding stream from the file.
            (PdfReference)streams.remove(1) // Removes the exceeding stream from the content stream.
            );
        }

        PdfReference streamReference = (PdfReference)streams.get(0);
        File.update(streamReference); // Updates the existing stream into the file.
        stream = (PdfStream)streamReference.getDataObject();
      }
    }

    // Get the stream buffer!
    IBuffer buffer = stream.getBody();
View Full Code Here

Examples of org.pdfclown.objects.PdfReference

  // <private>
  private PrimitiveComposer createFilter(
    )
  {
    PdfReference reference = page.getFile().register(new PdfStream());

    return new PrimitiveComposer(
      new ContentScanner(
        new Contents(
          reference,
          reference.getIndirectObject(),
          page
          )
        )
      );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.