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....Us Contact Customers Legal Security Events Acquisition Ask AI...AI GroupDocs Documentation / GroupDocs.Metadata Product Family...
Following code snippet shows how to add text watermark to a Document. If the Document consists of multiple parts (pages, worksheets, slides, frames etc), the watermark will be added to all of them.
advanced_usage.adding_text_watermarks.AddTextWatermark
// Specify an absolute or relative path to your image. Ex: "C:\\Docs\\image.png" Watermarker watermarker = new Watermarker("image.png"); // Initialize the font to be used for watermark Font font = new Font("Arial", 19, FontStyle.Bold | FontStyle.Italic); // Create the watermark object TextWatermark watermark = new TextWatermark("Test watermark", font); // Set watermark properties watermark....Us Contact Customers Legal Security Events Acquisition Ask AI...AI GroupDocs Documentation / GroupDocs.Watermark Product Family...
Note GroupDocs.Parser is a feature-reach Document data parsing API. Here you may find description of the most important features. Parse Document by Template GroupDocs.Parser allows to parse Documents by user-defined templates.
It is easy to crate a template with data field definitions, table definitions. Then it’s easy to use the template (just pass the Template object to parseByTemplate(Template) method) and extract data such as prices, invoices, tables from your typical Documents....Us Contact Customers Legal Security Events Acquisition Ask AI...AI GroupDocs Documentation / GroupDocs.Parser Product Family /...
GroupDocs.Parser provides the functionality to extract data from PDF Documents. Also password-protected PDFs and PDF portfolios are supported.
The following examples demonstrate how to extract data from PDF Documents:...Us Contact Customers Legal Security Events Acquisition Ask AI...AI GroupDocs Documentation / GroupDocs.Parser Product Family /...
A convenient text extractor API that permits users to extract raw or formatted text from different Document formats. Besides, it is not only a text extractor API, the user can extract metadata from the Document as well....Us Contact Customers Legal Security Events Acquisition Ask AI...AI GroupDocs Documentation / GroupDocs.Parser Product Family /...
Optimize content of a PDF file using GroupDocs.Viewer for .NET (C#)...Us Contact Customers Legal Security Events Acquisition Ask AI...AI GroupDocs Documentation / GroupDocs.Viewer Product Family /...
Following this guide you will learn how to load PDF, Word, Excel, PowerPoint Documents by local file path, stream or third-party storage for further processing with GroupDocs.Comparison for .NET API....Us Contact Customers Legal Security Events Acquisition Ask AI...AI GroupDocs Documentation / GroupDocs.Comparison Product Family...
GroupDocs.Metadata for .NET provides functionality that allows working with different kinds of presentations such as PPT, PPTX, POTM, POTX, etc. For the full list of supported presentation formats please refer to Supported Document Formats.
Detecting the exact type of a presentation The following sample of code will help you to detect the exact type of a loaded presentation and extract some additional file format information.
Load a presentation Extract the root metadata package Use the FileType property to obtain file format information AdvancedUsage....Us Contact Customers Legal Security Events Acquisition Ask AI...AI GroupDocs Documentation / GroupDocs.Metadata Product Family...