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...
As per the preview, we are getting numerical values instead of the pictoral graphs for the categories.
attaching the screenshot for your reference.
image.png (31.8 KB)
image.png (115.3 KB)
Please suggest the changes …...Hi Nikunj, It seems that it may be a bug, when the GroupDocs...don’t know how to do this, but may be this is possible somehow)...
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...
This article offers guidance on how to add point annotation in PDF using C#. Additionally, it includes code and steps to insert point annotation to PDF in C#.... Updated on 30 May 2023 English Türkçe 日本語 Français...
This section will teach you how to convert MSG to DOCX using Java without the need of third-party software. Also, we will provide code to export MSG to DOCX in Java....There are instances where you may need to convert MSG files to...
Efficiently learn how to remove metadata from DOC using C# with a code example demonstrating how to delete metadata from DOC in C# without installing extra software....there are situations where you may need to remove it for privacy...
Develop a comprehensive understanding of how to remove annotations from PDF using Java. Also, you will find a code example to delete annotations in PDF using Java....document appear cluttered and may not be appropriate for the final...
This topic explains how to render RTF as image using Python. Moreover, there is no need to install extra software on your system to create images from RTF in Python.... For example, you may want to embed document previews...
Programmatically compare your photos and images in Java. Image comparison of JPG, PNG, GIF, BMP, DICOM and other images within your Java applications.... For the details, you may also visit the API Reference...