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...
Extract attachments from Pdf portfolios To extract attachments from emails getContainer method is used. This method returns the collection of ContainerItem objects.
Here are the steps to extract an attachment text from Pdf Portfolios:
Instantiate Parser object for the initial document; Call getContainer method and obtain collection of ContainerItem objects; Check if collection isn’t null (container extraction is supported for the document); Iterate through the collection and get container item names, sizes and obtain content....Conversion Product Solution GroupDocs...data from PDF documents / Extract attachments from PDF portfolios...
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...
This topic describes how to use the GroupDocs.Viewer Node.js API to convert email messages to HTML, Pdf, PNG, and JPEG formats....Conversion Product Solution GroupDocs...Render email messages as HTML, PDF, PNG, and JPEG files Leave feedback...
To extract data from Pdf documents parseForm and parseByTemplate(Template) methods are used. Both methods return DocumentData object. For details, see Working With Extracted Data.
Here are the steps to extract data from Pdf Form:
Instantiate Parser object for the initial document Call parseForm method and obtain the DocumentData object; Check if data isn’t null (parse form is supported for the document); Iterate over field data to obtain form data. The following example shows the use case when a user fills in Pdf form and send it by email (for example)....Conversion Product Solution GroupDocs...Extract data from PDF documents / Parse data from PDF documents Parse...
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...
This article explains how to use Pdf digital electronic signature features on document page....Conversion Product Solution GroupDocs.../ Sign Pdf documents with special appearance Sign Pdf documents...
View XML files as Pdf using Java. Learn how to render XML files within your own XML viewer Java application using GroupDocs API....other document formats such as PDF, JPG, PNG, or HTML. This article...viewing API that allows the conversion of multiple file formats...
Convert Pdf to Excel (XLS, XLSX) or convert DOC, DOCX to Excel spreadsheet in C# using document Conversion API for .NET. Build your own Conversion App....If you have tabular data in PDF or Word documents format, you... we will see how to convert PDF to Excel and also how to convert...
Removing watermark from a particular page of Pdf document using C#....Conversion Product Solution GroupDocs...watermarks to PDF documents / Existing objects in PDF document Existing...