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....Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...
Inspect a document — file type, page count, attachments, and format-specific metadata — with the Viewer.get_view_info and Viewer.get_file_info methods in GroupDocs.Viewer for Python via .NET....Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...
Calculate and display aggregate values like sums, counts, and averages from data collections in templates....Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...
This article describes the new feature of the GroupDocs.Editor for Java version 26.1 - deleting (removing) one or many slides from the loaded and edited presentation during its saving to the output format...Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...
This article explains how to merge arbitrary pages from different documents into a single PDF, DOCX, Excel or PowerPoint document using GroupDocs.Merger for Java....Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...
This topic describes how to use the GroupDocs.Viewer Java API to convert PowerPoint presentations to HTML, PDF, PNG, and JPEG formats....Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...
This topic describes how to use the GroupDocs.Viewer Java API to convert email messages to HTML, PDF, PNG, and JPEG formats....Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...
This article shows how to access IPTC metadata in a file of any supported format....Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...
Following code snippet shows how to add text watermark to a document. If the document consists of multiple parts (pages, worksheets, slides, frames etc), the watermark will be added to all of them.
advanced_usage.adding_text_watermarks.AddTextWatermark
// Specify an absolute or relative path to your image. Ex: "C:\\Docs\\image.png" Watermarker watermarker = new Watermarker("image.png"); // Initialize the font to be used for watermark Font font = new Font("Arial", 19, FontStyle.Bold | FontStyle.Italic); // Create the watermark object TextWatermark watermark = new TextWatermark("Test watermark", font); // Set watermark properties watermark....Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs...