Package org.pdfclown.objects

Examples of org.pdfclown.objects.PdfDirectObject


    )
  {
    /*
      NOTE: 'PC' entry may be undefined.
    */
    PdfDirectObject onPageCloseObject = getBaseDataObject().get(PdfName.PC);
    if(onPageCloseObject == null)
      return null;

    return Action.wrap(onPageCloseObject,getContainer());
  }
View Full Code Here


    )
  {
    /*
      NOTE: 'PI' entry may be undefined.
    */
    PdfDirectObject onPageInvisibleObject = getBaseDataObject().get(PdfName.PI);
    if(onPageInvisibleObject == null)
      return null;

    return Action.wrap(onPageInvisibleObject,getContainer());
  }
View Full Code Here

    )
  {
    /*
      NOTE: 'PO' entry may be undefined.
    */
    PdfDirectObject onPageOpenObject = getBaseDataObject().get(PdfName.PO);
    if(onPageOpenObject == null)
      return null;

    return Action.wrap(onPageOpenObject,getContainer());
  }
View Full Code Here

    )
  {
    /*
      NOTE: 'PV' entry may be undefined.
    */
    PdfDirectObject onPageVisibleObject = getBaseDataObject().get(PdfName.PV);
    if(onPageVisibleObject == null)
      return null;

    return Action.wrap(onPageVisibleObject,getContainer());
  }
View Full Code Here

    <p>This feature is <i>applicable to {@link TilingPattern uncolored tiling patterns} only</i>.</p>
  */
  public ColorSpace<?> getUnderlyingColorSpace(
    )
  {
    PdfDirectObject baseDataObject = getBaseDataObject();
    if(baseDataObject instanceof PdfArray)
    {
      PdfArray baseArrayObject = (PdfArray)baseDataObject;
      if(baseArrayObject.size() > 1)
        return ColorSpace.wrap(baseArrayObject.get(1), getContainer());
View Full Code Here

            NOTE: Font widths are grouped in one of the following formats [PDF:1.6:5.6.3]:
              1. startCID [glyphWidth1 glyphWidth2 ... glyphWidthn]
              2. startCID endCID glyphWidth
          */
          int startCID = ((PdfInteger)iterator.next()).getRawValue();
          PdfDirectObject glyphWidthObject2 = iterator.next();
          if(glyphWidthObject2 instanceof PdfArray) // Format 1: startCID [glyphWidth1 glyphWidth2 ... glyphWidthn].
          {
            int cID = startCID;
            for(PdfDirectObject glyphWidthObject : (PdfArray)glyphWidthObject2)
            {glyphWidths.put(cID++,((PdfInteger)glyphWidthObject).getRawValue());}
View Full Code Here

    )
  {
    /*
      NOTE: 'Dest' entry may be undefined.
    */
    PdfDirectObject destinationObject = getBaseDataObject().get(PdfName.Dest);
    if(destinationObject == null)
      return null;

    return Document.resolveName(
      Destination.class,
View Full Code Here

  @Override
  public Annotation remove(
    int index
    )
  {
    PdfDirectObject annotationObject = getBaseDataObject().remove(index);
    return Annotation.wrap(annotationObject,getContainer());
  }
View Full Code Here

  */
  @PDF(VersionEnum.PDF14)
  public DocumentActions getActions(
    )
  {
    PdfDirectObject actionsObject = getBaseDataObject().get(PdfName.AA);
    if(actionsObject == null)
      return null;

    return new DocumentActions(actionsObject, getContainer());
  }
View Full Code Here

    Gets the bookmark collection [PDF:1.6:8.2.2].
  */
  public Bookmarks getBookmarks(
    )
  {
    PdfDirectObject bookmarksObject = getBaseDataObject().get(PdfName.Outlines);
    if(bookmarksObject == null)
      return null;

    return new Bookmarks(bookmarksObject);
  }
View Full Code Here

TOP

Related Classes of org.pdfclown.objects.PdfDirectObject

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.