Class PDDocumentNameDestinationDictionary

java.lang.Object
org.apache.pdfbox.pdmodel.PDDocumentNameDestinationDictionary
All Implemented Interfaces:
COSObjectable

public class PDDocumentNameDestinationDictionary extends Object implements COSObjectable
This encapsulates the "dictionary of names and corresponding destinations" for the /Dests entry in the document catalog.
  • Field Details

  • Constructor Details

    • PDDocumentNameDestinationDictionary

      public PDDocumentNameDestinationDictionary(COSDictionary dict)
      Constructor.
      Parameters:
      dict - The dictionary of names and corresponding destinations.
  • Method Details

    • getCOSObject

      public COSDictionary getCOSObject()
      Convert this standard java object to a COS object.
      Specified by:
      getCOSObject in interface COSObjectable
      Returns:
      The cos dictionary for this object.
    • getDestination

      public PDDestination getDestination(String name) throws IOException
      Returns the destination corresponding to the parameter.
      Parameters:
      name - The destination name.
      Returns:
      The destination for that name, or null if there isn't any.
      Throws:
      IOException - if something goes wrong when creating the destination object.