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....Conversion Product Solution GroupDocs...metadata in PDF documents Working with metadata in PDF documents...
Use GroupDocs.Conversion libraries To convert Pdf and Word documents, Excel spreadsheets, PowerPoint presentations, images of various formats like PNG, JPEG, BMP. Just couple lines of C# or Java, JavaScript or Python code To convert your documents quickly and accurately....Conversion Product Solution GroupDocs...GroupDocs.Conversion Product Family GroupDocs.Conversion Product...
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....Conversion Product Solution GroupDocs...metadata in PDF documents Working with metadata in PDF documents...
Find answers about converting documents and images of various types using Java code on any platform....Conversion Product Family GroupDocs...Product Family GroupDocs.Conversion for Java Latest Answers How...
This article demonstrates that how you can specify starting page index (zero based) and the number of pages from this index To save a rasterized Pdf...Conversion Product Solution GroupDocs...rasterized PDF Select specific pages for rasterized PDF Leave feedback...
Work with containers such as ZIP archives, Email sTores, and Pdf portfolios using GroupDocs.Parser for Python via .NET....Conversion Product Solution GroupDocs...stores (PST/OST), PDF portfolios, and email attachments, then...
Processing Email attachments, embedded files, and compressed files with GroupDocs.Viewer for Java...Conversion Product Solution GroupDocs...attachments: Email attachments Files embedded in PDF files Email messages...
Processing Email attachments, embedded files, and compressed files with GroupDocs.Viewer for .NET...Conversion Product Solution GroupDocs...attachments: Email attachments Files embedded in PDF files Email messages...
Processing Email attachments, embedded files, and compressed files with GroupDocs.Viewer for Node.js via Java...Conversion Product Solution GroupDocs...attachments: Email attachments Files embedded in PDF files Email messages...