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....and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails...
This article describes the search options that can be specified in an instance of the SearchOptions class....to search over your PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and more...
This article explains how to access EXIF metadata in a file of any supported format, GroupDocs.Metadata for Java provides the IExif.getExifPackage method....and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails...
Access, read, update, and remove EXIF metadata using GroupDocs.Metadata for Python via .NET....and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails...
This article describes how to preserve and export all built-in and custom styles in a source WordProcessing document during editing using GroupDocs.Editor for Node.js via Java....docx' ); // Create WordProcessingEditOp...groupdocs_editor . WordProcessingFormat . Docx ); // Save the edited document...
This article describes the basic steps of building a search solution with GroupDocs.Search for .NET: creating and opening an index, indexing documents, searching and processing search results....to search over your PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and more...
This article explains how to create instance of the EditableDocument class from HTML files from disk or from HTML markup with resources using GroupDocs.Editor for Java API....it to some final format like DOCX or XLSX, user needs to pass...
This article describes the classes that represent search results and shows how to work with them....to search over your PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and more...