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....Assembly Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Metadata Product...
Gets or sets a base URI to resolve external resource files' relative URIs to absolute ones while loading an HTML template Document to be assembled...Assembly - API Reference GroupDocs.Assembly - API Reference...Reference GroupDocs.Assembly LoadSaveOptions Class LoadSaveOptions...
How to migrate from earlier versions of GroupDocs.Signature for Java...Assembly Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Signature Product...
The page describes how to manage replies for different Document types using GroupDocs.Annotation for .NET API....Assembly Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Annotation Product...
This Documentation section explains features of EditableDocument class when editing Document with GroupDocs.Editor for Java API....Assembly Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Editor Product...
This guide demonstrates how to edit content of PDF files like a common text Documents using a GroupDocs.Editor for .NET....Assembly Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Editor Product...
This article explains how to to find and remove watermarks of both types in Visio Document....Assembly Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Watermark Product...
Follow this guide and learn how to remove page from PDF or Word Document, delete worksheet from Excel file or remove slides from PowerPoint presentations with GroupDocs.Merger for Java API....Assembly Product Solution GroupDocs...Events Acquisition GroupDocs Documentation / GroupDocs.Merger Product...