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.... For example, you may want to obtain information about...resources GitHub examples You may easily run the code above and...
Indexing reports are created for indexing and updating operations. Indexing reports can be retrieved from the index using the getIndexingReports method. Reports are stored in the index only while the index is loaded into RAM for use. If you reload the index, the reports will not be restored.
You can configure the maximum number of stored reports using the setMaxIndexingReportCount method of the IndexSettings class. The default value is 5. Learn more about index settings on the page Search index settings....resources GitHub examples You may easily run the code from documentation...
To extract hyperlinks from Microsoft Office Word document getStructure method is used. This method returns XML representation of the document. Hyperlinks are represented by “hyperlink” tag; “link” attribute contains hyperlink’s URL. For more details, see Extract text structure. Hyperlink can contain a text:
google.com Warning getStructure method returns null value if text structure extraction isn’t supported for the document. For example, text structure extraction isn’t supported for TXT files. Therefore, for TXT file getStructure method returns null....resources GitHub examples You may easily run the code above and...
This article shows how to sign documents in batch mode within the archive files with one or multiple electronic signatures...resources GitHub Examples You may easily run the code above and...
Hi,
I have been looking at Group Docs Editor features for one of my requirement. Our requirement is, we have pdfs with some variable fields (Please find sample screen shot below.) We want to implement .NET web applicat…...listOptions, pdfSaveOptions); } You may find following articles helpful:...
Reading PNG metadata properties The GroupDocs.Metadata API supports extracting format-specific information from PNG images.
The following are the steps to read the native PNG metadata.
Load a PNG image Get the root metadata package Extract the native metadata package using PngRootPackage.getPngPackage Read the PNG metadata properties advanced_usage.managing_metadata_for_specific_formats.image.png.PngReadTextChunks
try (Metadata metadata = new Metadata(Constants.InputPng)) { PngRootPackage root = metadata.getRootPackageGeneric(); for (PngTextChunk chunk : root.getPngPackage().getTextChunks()) { System.out.println(chunk.getKeyword()); System.out.println(chunk.getText()); if (chunk instanceof PngCompressedTextChunk) { PngCompressedTextChunk compressedChunk = (PngCompressedTextChunk) chunk; System....resources GitHub examples You may easily run the code above and...
This article explains how the The GroupDocs.Metadata API allows reading some common MPEG audio properties from MP3 files....resources GitHub examples You may easily run the code above and...
This article shows the implementation of annotation redaction for documents of different formats like PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and others.... GitHub examples You may easily run the code above and...
This page contains information about getting indexed documents in the search network....resources GitHub examples You may easily run the code from documentation...