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...
In this topic, you will learn how to convert MSG to PDF using Java without installing third-party software. Also, we will provide code to export MSG to PDF in Java.... However, there may be instances when you need to...
Learn how to convert XLSX to XLS using Python. Step-by-step guide and code example is included in this topic for how to export XLSX to XLS in Python....rely on older software, you may need to convert modern Excel...
Swiftly master the process of how to remove annotations from XLSX using Java. You'll also discover a code example demonstrating how to delete annotations in XLSX using Java....collaboration and documentation, there may be instances where they need...
Learn how to remove text watermark from DOCX using Java. We'll provide you code to delete watermark text from DOCX in Java without requiring any additional software.... Updated on 08 May 2024 English Deutsch Türkçe 日本語...
In this tutorial, we will provide simple steps to convert DOCX to TXT using C#. Furthermore, we will furnish a code example representing how to export DOCX to TXT in C#....there are situations where you may need to convert a DOCX file into...
Learn the process to convert documents with one of the top library and easily convert XML to PDF in C#. Explore sample code for C# convert XML to PDF capability....numerous properties and you may modify them according to your...
This section contains articles with explanation how to create Metadata electronic signatures and embed into metadata custom object with its serialization and encryption. The examples show how to customize object serialization and encryption....resources GitHub Examples You may easily run the code above and...
This topic will guide you how to remove metadata from PPT using Java. You'll get sample code to delete metadata from PPT in Java without extra software installation.... Updated on 22 May 2024 English Deutsch Türkçe 日本語...
This guide will walk you through the process of how to remove metadata from EPUB using Java. You will also get the code example to delete metadata from EPUB in Java.... Updated on 24 May 2024 English Deutsch Türkçe 日本語...