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....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
Calculate and display aggregate values like sums, counts, and averages from data collections in templates....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
This article demonstrates how to edit Mobi files using Java programming language....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
This page contains a description of the use of document filters for indexing, as well as descriptions of all types of filters with examples of their creation....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
GroupDocs.Watermark API allows you to add watermark in headers and footers of the page....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
The OperationFinished event occurs when an index operation completes – indexing, updating, merging, or optimizing (segment merging)...Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
This article explains how to use custom caching implementation with GroupDocs.Viewer within your .NET applications....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
Why To Migrate? Here are the key reasons to use the new API provided by GroupDocs.Metadata for Java starting from version 20.2:
The* Metadata* class is introduced as a single entry point to manage metadata in files of all supported formats. Extracting and updating metadata was unified for all supported formats. The product architecture was redesigned from scratch in order to simplify most common operations with metadata properties. Getting document information and preview generation procedures were simplified....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
This article explains how to access IPTC metadata in a file of any supported format, GroupDocs.Metadata for Java provides the IIptc.getIptcPackage method....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...
This article demonstrates how to save edited text documents, spreadsheets and presentations with GroupDocs.Editor for Java API....Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs...