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...metadata in PDF documents Working with metadata in PDF documents...
Find Answers by API GroupDocs.Total Product Family GroupDocs.Conversion Product Family GroupDocs.Annotation Product F......Comparison Product Family GroupDocs...Convert PDF to Excel using Node.js Convert PDF to Word using Node...
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<PdfRootPackage>(); 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....Comparison Product Solution GroupDocs...metadata in PDF documents Working with metadata in PDF documents...
Follow this guide and learn how To convert MS Excel workbooks - XLSX, XLS, XLSB using C# language and GroupDocs.Conversion for .NET....Comparison Product Solution GroupDocs..., , JPG, , , , , TIF, , , , PDF: Page Description Language: ...
Follow this guide and learn how To convert MS Excel workbooks - XLSX, XLS, XLSB using Java language and GroupDocs.Conversion for Java....Comparison Product Solution GroupDocs...Description Language: , , , , PDF: Presentation: FODP, , , , ,...
Find answers about converting documents and images of various types using code on any platform....Comparison Product Family GroupDocs...Answers Convert PDF to CSV using Node.js Convert PDF to Presentation...
Follow this guide and learn how To convert MS Excel workbooks - XLSX, XLS, XLSB using JavaScript language and GroupDocs.Conversion for Node.js via Java....Comparison Product Solution GroupDocs...Page Description Language: , , PDF: Presentation: FODP, , , , ,...
This API enables easy conversion of popular file formats, including Docx, XLSX, PPTX, Pdf, CAD drawings, and more using Python without installing extra software....Comparison Product Family GroupDocs...Answers Convert PDF to Word using Python Convert DOCX to GIF using...
This quick guide briefly explains To you the process To convert JPG To XLSM in C# and learn how To use this guide To convert JPG To XLSM using C#....Comparison Product Family GroupDocs...as PNG, POT, RTF, PPSX, DOCX, HTML, PDF, and many more. We have...
This article demonstrates how To convert files sTored on local disk using GroupDocs.Conversion for Java API....Comparison Product Solution GroupDocs...C:\files\converted.pdf) or a relative path (e.g., converted.pdf ). convertOptions...