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.Redaction Product Solution GroupDocs...
Learn how to extract images from documents using GroupDocs.Parser for Python via .NET. Extract images with position data, rotation, and format information from PDF, Word, Excel....Assembly Product Solution GroupDocs.Redaction 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....Assembly Product Solution GroupDocs.Redaction Product Solution GroupDocs...
Calculate and display aggregate values like sums, counts, and averages from data collections in templates....Assembly Product Solution GroupDocs.Redaction Product Solution GroupDocs...
With GroupDocs.Viewer for Java you can render files to HTML, PNG, JPEG and PDF formats, list and save attachments, embedded files and compressed files, and extract document text....Assembly Product Solution GroupDocs.Redaction Product Solution GroupDocs...
With GroupDocs.Viewer for Node.js you can render files to HTML, PNG, JPEG and PDF formats, list and save attachments, embedded files and compressed files, and extract document text....Assembly Product Solution GroupDocs.Redaction Product Solution GroupDocs...
Learn how to generate a preview for any page of an existing WordProcessing document in SVG format using GroupDocs.Editor for Node.js via Java....Assembly Product Solution GroupDocs.Redaction Product Solution GroupDocs...
This article demonstrates how to save edited text documents, spreadsheets, and presentations with GroupDocs.Editor for Node.js via Java API....Assembly Product Solution GroupDocs.Redaction Product Solution GroupDocs...
This article describes two new features of the GroupDocs.Editor for Java version 26.7 - the advanced worksheet editing options, which control how exactly input worksheet will be converted to HTML...Assembly Product Solution GroupDocs.Redaction Product Solution GroupDocs...