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...
This topic describes how to use the GroupDocs.Viewer Java API to convert EBooks to HTML, Pdf, PNG, and JPEG formats....Comparison Product Solution GroupDocs...EBooks Render EBooks as HTML, PDF, and image files Leave feedback...
GroupDocs Blog - GroupDocs Blog | Document Automation Solutions for .NET & Java Developers...Comparison Product Family includes ...PowerPoint, OpenDocument ODT, PDF, Text and HTML) for difference...
Learn how to merge images to Pdf file, combine images into one Pdf file programmatically in C# language using GroupDocs.Merger for .NET library....Comparison Product Solution GroupDocs...images to PDF using C# How to merge images to PDF using C# Leave...
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...
Learn how to extract tables from Pdf documents using GroupDocs.Parser for .NET. Compare multiple extraction methods from basic page-specific extraction to advanced document-wide processing with complete code examples....Comparison Product Solution GroupDocs...Tables from PDF Documents Extract Tables from PDF Documents Leave...
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...Comparison Product Solution GroupDocs...rasterized PDF Select specific pages for rasterized PDF Leave feedback...
Optimize Pdfs with GroupDocs.Viewer by removing unused resources and reducing file size....Comparison Product Solution GroupDocs...to PDF / Optimize the output PDF file / Optimize the PDF file...
This article explains how to add attachment to Pdf document with GroupDocs.Merger within your Java applications....Comparison Product Solution GroupDocs...attachment to PDF document How to add attachment to PDF document Leave...
Convert EBooks to HTML, Pdf, PNG, or JPEG using GroupDocs.Viewer for Python. Learn how to render documents in various formats....Comparison Product Solution GroupDocs...EBooks Render EBooks as HTML, PDF, and image files Leave feedback...