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....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...
GroupDocs.Metadata for .NET provides functionality that allows working with different kinds of presentations such as PPT, PPTX, POTM, POTX, etc. For the full list of supported presentation formats please refer to Supported Document Formats.
Detecting the exact type of a presentation The following sample of code will help you to detect the exact type of a loaded presentation and extract some additional file format information.
Load a presentation Extract the root metadata package Use the FileType property to obtain file format information AdvancedUsage....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...
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....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...
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....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...
Why To Migrate? Here are the key reasons to use the new updated API provided by GroupDocs.Parser for Java since version 19.11:
Parser class is introduced as a single entry point to extract data from the document. Data extraction was unified for all data types. The overall document related classes were unified to common. Product architecture was redesigned from scratch in order to simplify passing options and classes to manipulate data....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...
In this article, you will learn how to convert an image file to text or PDF using OCR with GroupDocs.Conversion for Java....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...
This article demonstrates how to save edited text documents, spreadsheets, and presentations with GroupDocs.Editor for Node.js via Java API....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...
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....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...
Convert Outlook (PST/OST) files to HTML, PDF, PNG, or JPEG using the GroupDocs.Viewer Python API....Redaction Product Solution GroupDocs.Classification Product Solution Purchase...