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(); 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.... For example, you may want to obtain information about...resources GitHub examples You may easily run the code above and...
This article explains how to access EXIF metadata in a file of any supported format....Please note that the chosen ID may intersect with the IDs used by...resources GitHub examples You may easily run the code above and...
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.... For example, you may want to obtain information about...resources GitHub examples You may easily run the code above and...
Add text to image as watermark, or add image watermarks to JPG, WebP, PNG, BMP images using Java Watermarking API by GroupDocs.... You may explore the documentation for...
In this guide, you'll discover how to redact text in PPTX using Java. Moreover, you'll receive a simple code example to replace text in PPTX using Java.... Updated on 28 May 2024 English Türkçe Ελληνικά...
Discover how to add text watermark to JPG using Java. Moreover, you'll receive a code snippet demonstrating how to insert text watermark to JPG in Java programming.... Updated on 02 May 2024 English Français Deutsch...
Easily add image watermark to PPTX using Python to brand presentations. This tutorial explains how to apply watermark to PowerPoint in Python across all slides consistently.... When preparing slides that may be shared widely or contain sensitive...
In this tutorial, you will learn how to redact text in XLSX using Java. Additionally, you will get a simple code example to replace text in XLSX using Java.... Updated on 30 May 2024 English Türkçe Ελληνικά...
In this topic, we will provide you guide on how to add text signature to DOCX using Java. We will also supply code example to insert text signature to DOCX in Java.... You may enhance your document management...
After I updated ‘groupdocs-conversion’ for Java from 25.6 to 25.8 conversion to PDF for XLS2003 results in a PDF that I can’t open with a PDF viewer like Preview.
Attaching the file that I can reproduce the issue with
d…... This may be due to changes in the library’s...