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....Comparison Product Solution GroupDocs...and extract some additional file format information. a PDF document...
This article shows how to save output to a stream when rendering a document...Comparison Product Solution GroupDocs...instantiate and release the output file streams. defines methods to...
The page describes how to add resource redaction annotation to a document using GroupDocs.Annotation for Java....Comparison Product Solution GroupDocs...// Add annotation and save to file annotator . add ( resourcesRedaction...
GroupDocs.Search for Java supports the ability to remove indexed Files and folders from an index. Only Files or folders that were explicitly added to the index can be deleted....Comparison Product Solution GroupDocs...indexed files and folders from an index. Only files or folders...
Introduction to GroupDocs.Signature for Python via .NET - what is it and why to use...Comparison Product Solution GroupDocs...documents Work with over 45 file formats Customize how signatures...
This article shows you how to view and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images and more with our free online....Comparison Product Solution GroupDocs...PreviewOptions ( pageNumber => File . Create ( $"{Constants.Out...
This article explains how to search signatures with LINQ query with GroupDocs.Signature API....Comparison Product Solution GroupDocs...instance using the specified file. using ( var signature = new...
This article explains how to fill signature background with solid brush...Comparison Product Solution GroupDocs...Image }; // sign document to file signature . Sign ( "signed.pdf"...
Quickly get started with GroupDocs.Redaction for Python via .NET by creating and running a simple example....Comparison Product Solution GroupDocs...the example, the resulting PDF file will have all instances of the...