GroupDocsGists
10/24/2017 - 4:38 PM

Examples-GroupDocs.Metadata-for-Java

Examples-GroupDocs.Metadata-for-Java

// initialize PdfFormat
PdfFormat pdfFormat = new PdfFormat(Common.mapSourceFilePath(path));
// get document properties
PdfMetadata properties = pdfFormat.getDocumentProperties();
// get author
System.out.printf("Author: %s", properties.getAuthor());
// get producer
System.out.printf("Producer: %s", properties.getProducer());
// get created date of the document
System.out.printf("Created Date: %s", properties.getCreatedDate());