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....documents Leave feedback Detecting the version of a PDF document...sample of code will help you to detect the PDF version a loaded document...
The easiest way to remove metadata properties from a file is to use corresponding tags that allow you to locate the desired properties across all metadata packages....mentions of John from the detected metadata) int affected = metadata...
Learn how to extract and work with table of contents from Word documents (.doc, .docx) using GroupDocs.Parser for .NET....automatically generated by detecting paragraphs with built-in heading...
Following this guide, you will learn how to apply or discard revisions found during document comparison using built-in Microsoft Word functionality....document, accept / reject detected revisions and save changes...
Hi, It appears as if we stumbled upon an issue when comparing two docx-documents. Find them attached in this topic.
To explain the issue, notice that the first document does not contain the word “GEMA” but the second do…...EnableMoveDetection = true Detects moved paragraphs/words instead...
Get ZIP format metadata The API allows detecting ZIP archives and reading format metadata. The following steps are needed to be followed:
Load a ZIP archive Get the root metadata package Extract the native metadata package using the ZipRootPackage.getZipPackage method Read the ZIP archive properties Loop through ZipPackage.getFiles to extract information about the archived files The following code snippet shows how to get metadata from a ZIP archive.
advanced_usage.managing_metadata_for_specific_formats.archive.ZipReadNativeMetadataProperties...format metadata The API allows detecting ZIP archives and reading format...
Learn this article and check how to load and convert text files with advanced options using GroupDocs.Conversion for Java API....lists recognition algorithm detects list paragraphs, when list...
Get ZIP format metadata The API allows detecting ZIP archives and reading format metadata. The following steps are needed to be followed:
Load a ZIP archive Get the root metadata package Extract the native metadata package using ZipRootPackage.ZipPackage Read the ZIP archive properties Loop through ZipPackage.Files to extract information about archived files The following code snippet shows how to get metadata from a ZIP archive.
AdvancedUsage.ManagingMetadataForSpecificFormats.Archive.ZipReadNativeMetadataProperties
Encoding encoding = Encoding....format metadata The API allows detecting ZIP archives and reading format...
Hello,
When using the GroupDocs Viewer, I’m currently unable to to render MSG type files into PDF ones.
All other tested file types work.
Regards,...There might be an issue with detecting the file type when loading...