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....applications are able to display simple text statistics for loaded documents...demonstrates how to obtain the text statistics for a PDF document...
This article explains how to delete electronic signatures of the certain type with GroupDocs.Signature API....SignatureId}, Text: {temp.Text}" ); } } else { Console...
You will learn how to add arrow annotation in PDF using C# in this tutorial. Additionally, we will provide code example to insert arrow annotation into PDF in C#....particular graph, table, or line of text. Additionally, the article provides...
In this article, you will find a guide on how to convert TXT to XLSX using Java on common operating systems and code example to generate XLSX from TXT using Java.... TXT , or plain text, is a commonly used format for...
In this topic, you will be taken step-by-step process to convert RTF to ODT using Java. Also, you will find Java code that explains how to export RTF to ODT in Java....task involves converting Rich Text Format ( RTF ) files to ODT...
You can find the directions to convert docx to RTF using C# in this topic. Moreover, we will help you to write an application to export docx to RTF using C#....to create, store, and share text documents. RTF is a widely supported...
In this topic, you will learn how to convert ODT to SVG using Java without installing third-party software. Also, we will provide code to export ODT to SVG in Java....needing to convert Open Document Text ( ODT ) files to SVG, you’ve...
In this tutorial, you'll discover how to add arrow annotation to JPG using Java. Furthermore, we'll furnish a code example to insert arrow annotation to JPG in Java.... such as graphs, tables, or text lines. The following section...
Learn how to efficiently remove annotations from RTF using C#. This guide includes code demonstrating the process of how to delete annotations in RTF using C#....Removing annotations from RTF (Rich Text Format) files can be crucial...
Explore how to add image watermark to XLS using Python and safeguard spreadsheet files by inserting a centered logo watermark across worksheets....interested in watermarking rich-text files with logos or images,...