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 FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Document.Pdf.PdfReadFileFormatProperties
using (Metadata metadata = new Metadata(Constants.InputPdf)) { var root = metadata.GetRootPackage(); Console.WriteLine(root.FileType.FileFormat); Console.WriteLine(root.FileType.Version); Console.WriteLine(root.FileType.MimeType); Console.WriteLine(root.FileType.Extension); } Reading built-in metadata properties To access built-in metadata of a PDF document, please use the DocumentProperties property defined in the DocumentRootPackage class....Annotation Product Solution GroupDocs...InspectionPackage . Annotations != null ) { foreach ( var annotation in root...
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....Annotation Product Solution GroupDocs...null ) { for ( PdfAnnotation annotation : root . getInspectionPackage...
Exact phrase redactions Exact Phrase redaction applies textual redaction, replacing personal exact phrase "John Doe" with "[personal]" Sample: John Doe Regular expressions redactions Behind the sce......Sample: 00 00 123456 Removing annotations (comments etc) You can use...specific comments and other annotations from the document. For example...
Exact phrase redactions Exact Phrase redaction applies textual redaction, replacing personal exact phrase "John Doe" with "[personal]" Sample: John Doe Regular expressions redactions Behind the sce......Sample: 00 00 123456 Removing annotations (comments etc) You can use...specific comments and other annotations from the document. For example...
Exact phrase redactions Exact Phrase redaction applies textual redaction, replacing personal exact phrase "John Doe" with "[personal]" Sample: John Doe Regular expressions redactions Behind the sce......Sample: 00 00 123456 Removing annotations (comments etc) You can use...specific comments and other annotations from the document. For example...
EnableCaching feature stores image representation of a document in a directory at the local drive. In case of repetitive processing/opening of a document, it uses cached data. This thing helps to avoid the processing of the same document again and again. You might be waiting for this feature. The wait is over now. GroupDocs.Annotation for Java 19.5 permits you to enable cache mode and cache page previews. Let’s take a overview of its code....Annotation for Java 19.5 permits you...possibility to display distance annotation caption for following file...
This article explains how to use different image adjustment with electronic signatures on document page....Annotation Product Solution GroupDocs...Star , // setup if popup annotation will be opened by default...
GroupDocs Blog - GroupDocs Blog | Document Automation Solutions for .NET & Java Developers...as Cells to SVG conversion, Words to Gif and setting up custom...Loading in HTML Save Back to HTML, Word, ODT, XML & Text File Formats...
The page describes how to detect document file type, size and calculate pages count when annotate documents or images with GroupDocs.Annotation....Annotation Product Solution GroupDocs...GroupDocs.Annotation Product Family / GroupDocs.Annotation for .NET...
1 Exact phrase redactions Exact Phrase redaction applies textual redaction, replacing personal exact phrase "John Doe" with "[personal]" Sample: John Doe Regular expressions redactions Behind the s......Sample: 00 00 123456 Removing annotations (comments etc) You can use...specific comments and other annotations from the document. For example...