use of com.tom_roush.pdfbox.pdmodel.common.PDMetadata in project PdfBox-Android by TomRoush.
the class PDPage method getMetadata.
/**
* Get the metadata that is part of the document catalog. This will return null if there is
* no meta data for this object.
*
* @return The metadata for this object.
*/
public PDMetadata getMetadata() {
PDMetadata retval = null;
COSBase base = page.getDictionaryObject(COSName.METADATA);
if (base instanceof COSStream) {
retval = new PDMetadata((COSStream) base);
}
return retval;
}
Aggregations