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...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Metadata Product...
This article explains how to provide advanced options when updating QR-code electronic signatures with GroupDocs.Signature API....Assembly Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Signature Product...
This topic describes how to use the GroupDocs.Viewer Node.js API to convert web Documents to PDF, PNG, and JPEG formats....Assembly Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Viewer Product...
GroupDocs.Watermark for Java supports the following watermark types.
TextWatermark ImageWatermark Adding watermark to any supported Document format using GroupDocs.Watermark consists of some easy steps. Following are the steps to add a watermark to a Document.
Load the Document Create and initialize watermark object Set watermark properties Add a watermark to the Document Save the Document For more details please refer to the following guides:...Assembly Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Watermark Product...
This article explains how to add metadata signatures to Presentation Document with GroupDocs.Signature...Assembly Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Signature Product...
This article explains how to sign Document with Digital electronic signatures using advanced options with GroupDocs.Signature API....Assembly Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Signature Product...
This article shows how to implement one or several interfaces for the Document's features and required redaction....Assembly Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Redaction Product...
To search a keyword in HTML Documents Search(String) method is used. This method returns the collection of SearchResult objects....Assembly Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Parser Product...