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 FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Document.Pdf.PdfReadFileFormatProperties
using (Metadata metadata = new Metadata(Constants.InputPdf)) { var root = metadata.GetRootPackage(); Console.WriteLine(root.FileType.FileFormat); Console.WriteLine(root.FileType.Version); Console.WriteLine(root.FileType.MimeType); Console.WriteLine(root.FileType.Extension); } Reading built-in metadata properties To access built-in metadata of a PDF document, please use the DocumentProperties property defined in the DocumentRootPackage class....Assembly Product Solution GroupDocs...
This article demonstrates and explains different operations with resources, including retrieving, adjusting, and saving them in different scenarios when editing documents with GroupDocs.Editor for Node.js via Java....Assembly Product Solution GroupDocs...
This article explains how to detect the document file type and calculate the number of pages when converting a file with GroupDocs.Conversion for Node.js via Java....Assembly Product Solution GroupDocs...
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....Assembly Product Solution GroupDocs...
This article demonstrates how to load, edit, and read form fields in a Word document using GroupDocs.Editor for Node.js via Java....Assembly Product Solution GroupDocs...
In this article, you will learn how to convert an image file to text or PDF using OCR with GroupDocs.Conversion for Java....Assembly Product Solution GroupDocs...
This guide demonstrates how to edit content of the documents from Email format family like a common text documents using a GroupDocs.Editor for Java....Assembly Product Solution GroupDocs...
In this article, you will learn how to convert diagram documents to other formats or another diagram format with GroupDocs.Conversion for Node.js via Java....Assembly Product Solution GroupDocs...
This topic describes how to use the GroupDocs.Viewer Node.js API to convert CAD files (DWG, DGN, DXF) to HTML, PDF, PNG, and JPEG formats....Assembly Product Solution GroupDocs...