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....metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images...
Retrieve and save attachments from Emails, Outlook files, archives, and Pdfs....attachments: emails, Outlook data files, archives, and PDF documents...
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....data from PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails and more...
Sometimes you may need To just remove all or clean metadata properties without applying any filters. The best way To do this is To use the Sanitize method....pdf" ); // Remove detected metadata...); metadata . save ( "output.pdf" ); } As a result, we get a sanitized...
This artcle explains how To remove all or clean metadata properties without applying any filters. The best way To do this is To use the Sanitize method....metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images...
GroupDocs.Parser provides the functionality To extract data from EPUB e-books. Also CHM and FB2 formats are supported.
The following table provides the list of supported formats:
Format Description CHM Compiled HTML Help File EPUB Digital E-Book File Format FB2 FictionBook 2.0 File More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:
GroupDocs.Parser for .NET examples GroupDocs.Parser for Java examples Free online document parser App Along with full featured ....data from PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails and more...
This example demonstrates how To load a password-protected document using GroupDocs.Metadata for Python via .NET....metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images...
Learn how To get a list of all supported file formats programmatically using GroupDocs.Parser for .NET. Check supported extensions and file types dynamically in C#....data from PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails and more...
Locate and remove the metadata properties you don't want — by tag, category, name, type or value — with GroupDocs.Metadata for Python via .NET....metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images...
This example demonstrates how To load a file of a particular format using GroupDocs.Metadata for Python via .NET....metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images...