Class PDObjectReference

    • Field Detail

    • Constructor Detail

      • PDObjectReference

        public PDObjectReference()
        Default Constructor.
      • PDObjectReference

        public PDObjectReference​(COSDictionary theDictionary)
        Constructor for an existing object reference.
        Parameters:
        theDictionary - The existing dictionary.
    • Method Detail

      • getCOSDictionary

        protected COSDictionary getCOSDictionary()
        Returns the underlying dictionary.
        Returns:
        the dictionary
      • getCOSObject

        public COSBase getCOSObject()
        Convert this standard java object to a COS object.
        Specified by:
        getCOSObject in interface COSObjectable
        Returns:
        The cos object that matches this Java object.
      • getReferencedObject

        public COSObjectable getReferencedObject()
        Gets a higher-level object for the referenced object. Currently this method may return a PDAnnotation, a PDXObject or null.
        Returns:
        a higher-level object for the referenced object
      • setReferencedObject

        public void setReferencedObject​(PDAnnotation annotation)
        Sets the referenced annotation.
        Parameters:
        annotation - the referenced annotation
      • setReferencedObject

        public void setReferencedObject​(PDXObject xobject)
        Sets the referenced XObject.
        Parameters:
        xobject - the referenced XObject