Detecting the version of a PDF document The following sample of code will help you to detect the PDF version a loaded document and extract some additional file format information.
Load a PDF document Extract the root metadata package Use the getPdfType method to obtain file format information advanced_usage.managing_metadata_for_specific_formats.document.pdf.PdfReadFileFormatProperties
try (Metadata metadata = new Metadata(Constants.InputPdf)) { PdfRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getPdfType().getFileFormat()); System.out.println(root.getPdfType().getVersion()); System.out.println(root.getPdfType().getMimeType()); System.out.println(root.getPdfType().getExtension()); } Reading built-in metadata properties To access built-in metadata of a PDF document, please use the getDocumentProperties method defined in the DocumentRootPackage class....app conholdate.com conholdate.cloud conholdate.app containerize...
This article demonstrates how to edit e-Book files using Java programming language....app conholdate.com conholdate.cloud conholdate.app containerize...
Convert Microsoft Project files to HTML, PDF, PNG, or JPEG using the GroupDocs.Viewer Python API....app conholdate.com conholdate.cloud conholdate.app containerize...
This article explains how to work with spreadsheet document attachments while using GroupDocs watermarking Java API...app conholdate.com conholdate.cloud conholdate.app containerize...
This article explains how to sign document with Text electronic signatures using extended options with GroupDocs.Signature API....app conholdate.com conholdate.cloud conholdate.app containerize...
This article explains how to iteratively sign a PDF document with multiple digital certificates using advanced options with GroupDocs.Signature API....app conholdate.com conholdate.cloud conholdate.app containerize...
This topic describes how to use the GroupDocs.Viewer Java API to specify various options for rendering CAD files to HTML, PDF, PNG, and JPEG....app conholdate.com conholdate.cloud conholdate.app containerize...
This topic describes how to use the GroupDocs.Viewer Java API to convert archive files to HTML, PDF, PNG, and JPEG formats....app conholdate.com conholdate.cloud conholdate.app containerize...