The getSupportedFileTypes method of the FileType class is used to obtain a list of supported file types.
An example of obtaining a list of supported file types is presented below.
Iterable supportedFileTypes = FileType.getSupportedFileTypes(); Iterator iterator = supportedFileTypes.iterator(); while (iterator.hasNext()) { FileType fileType = (FileType)iterator.next(); System.out.println(fileType.getExtension() + " - " + fileType.getDescription()); } More resources Advanced usage topics To learn more about library features and get familiar how to manage metadata and more, please refer to theadvanced usage section....Signature Product Solution GroupDocs...Us Contact Customers Legal Security Events Acquisition Ask AI...
This example demonstrates how to load a file of some particular format.
advanced_usage.loading_files.LoadingFileOfSpecificFormat
// Explicitly specifying the format of a file to load you can spare some time on detecting the format LoadOptions loadOptions = new LoadOptions(FileFormat.Spreadsheet); // Constants.InputXls is an absolute or relative path to your document. Ex: @"C:\Docs\source.xls" try (Metadata metadata = new Metadata(Constants.InputXls, loadOptions)) { SpreadsheetRootPackage root = metadata.getRootPackageGeneric(); // Use format-specific properties to extract or edit metadata System....Signature Product Solution GroupDocs...Us Contact Customers Legal Security Events Acquisition Ask AI...
In this article, you will learn how to convert Publisher formats to other formats with GroupDocs.Conversion for Java....Signature Product Solution GroupDocs...Us Contact Customers Legal Security Events Acquisition Ask AI...
Retrieving information about a document with GroupDocs.Viewer for Java...Signature Product Solution GroupDocs...Us Contact Customers Legal Security Events Acquisition Ask AI...
This article demonstrates how you can convert to and from database formats with GroupDocs.Conversion for Java....Signature Product Solution GroupDocs...Us Contact Customers Legal Security Events Acquisition Ask AI...
In this article, you will learn how to apply watermark to document pages when converting document with GroupDocs.Conversion for Java API....Signature Product Solution GroupDocs...Us Contact Customers Legal Security Events Acquisition Ask AI...
There might be cases when the document is presented only as a stream (without a copy on the local disk). To avoid the overhead of saving documents to the disk, GroupDocs.Parser enables to extract data from streams directly.
The following example shows how to load the document from the stream:
// Create the stream try (InputStream stream = new FileInputStream(Constants.SamplePdf)) { // Create an instance of Parser class with the stream try (Parser parser = new Parser(stream)) { // Extract a text into the reader try (TextReader reader = parser....Signature Product Solution GroupDocs...Us Contact Customers Legal Security Events Acquisition Ask AI...