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()); } To find out whether the document is PDF/A or PDF/X and which conformance level it declares, see Detecting PDF/A document....md . Also process documents locally...
Create parent-child reports from nested Python dicts and lists with nested data bands, in paragraphs and in tables, using GroupDocs.Assembly for Python via .NET....md . Also process documents locally...
Set up a virtual environment, install groupdocs-viewer-net, and run three minimal examples — DOCX → HTML, DOCX → PDF, and DOCX → per-page PNG — in under five minutes....md . Also process documents locally...
Inspect a document — file type, page count, attachments, and format-specific metadata — with the Viewer.get_view_info and Viewer.get_file_info methods in GroupDocs.Viewer for Python via .NET....md . Also process documents locally...
In this article, you will learn how to extract compressed files and convert them to desired format with GroupDocs.Conversion for .NET....md . Also process documents locally...
This article describes how to build text search queries of various types: simple, wildcard, faceted, numeric range, date range, regular expression, boolean and phrase queries....md . Also process documents locally...
This article describes the new feature of the GroupDocs.Editor for Java version 26.1 - deleting (removing) one or many slides from the loaded and edited presentation during its saving to the output format...md . Also process documents locally...
Set up a virtual environment, install groupdocs-parser-net, and run three minimal examples — extract text, read metadata, and extract tables — in under five minutes....md . Also process documents locally...
This topic describes how to use the GroupDocs.Viewer Java API to convert email messages to HTML, PDF, PNG, and JPEG formats....md . Also process documents locally...