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 describes the feature of the GroupDocs.Editor for Python via .NET - deleting (removing) one or many worksheets from the loaded and edited spreadsheet (workbook) during its saving to the output format... For example, text-based separator-delimited formats...formats like and are basically the text files, they have no worksheets...
This guide will illustrate how to convert HTML to MHTML using C# on any commonly used operating system along with code example to generate MHTML from HTML in C#.... Hyper Text Markup Language, commonly known...
This topic provides a detail on how to convert HTML to MHTML using Java on various operating systems. It also includes code to generate MHTML from HTML in Java.... HTML, short for Hyper Text Markup Language, is a markup...
In this topic, you will learn how to convert DOCX to RTF using Java. Additionally, we will assist you in creating an application to export DOCX to RTF using Java....creating, storing, and sharing text documents. You can export DOCX...
Let's learn how to add highlight annotation to JPG using Java. Moreover, we will provide you a code example to insert highlight annotation in Java for JPG....explore the idea of highlighting text in images, remember that this...
Easily convert PDF to DOCX using C# with our step-by-step guide without installing extra tools. We will also provide you code example to export PDF to DOCX using C#.... Whether you are extracting text, modifying formatting, or incorporating...
This guide will walk you through the entire workflow on how to convert RTF to JPG using Java. Additionally, it will provide Java code to export RTF to JPG in Java....is the transformation of Rich Text Format ( RTF ) files to JPG...
Learn how to render EML as PNG using Python. This tutorial explains how to convert EML to PNG in Python with custom dimensions for email visualization....data, including headers, body text, and attachments. They are widely...
Reorder the pages of Word files in Java. The running example shows how to change the order of pages in DOC/DOCX files using document automation Java API....HTML Word Search and Replace Text in Word Documents How to Password...