UNPKG

@groupdocs/groupdocs.conversion

Version:

Powerful converter for PDF, Word, Excel, PowerPoint and image files.

68 lines (54 loc) 3.07 kB
**GroupDocs.Conversion for Node.js via Java** is a powerful API to convert back and forth between over 50 types of documents and images, including all Microsoft Office and OpenDocument file formats, PDF documents, raster images (TIFF, JPEG, GIF, PNG, BMP) and more. ## Node.js Converter API Features - Convert whole document to desired target format. - Convert specific document page(s) or page ranges. - Auto-detect source document format on the fly without requiring the file extension. - Obtain a list of all supported conversion formats. - Replace missing fonts. - Add text or image watermarks to any page. - Extract document's basic information. - Load source document with extended options; - Specify password for password-protected documents. - Load specific part or pages of the document. - Hide or show document comments. ## Supported File Formats **PDF:** PDF (version 1.3, 1.4, 1.5, 1.6, 1.7) **Word Processing:** DOC, DOCM, DOCX, DOT, DOTM, DOTX, MD, RTF, TXT **Spreadsheet:** XLS, XLSX, XLSB, XLTX, XLTM, XLSM, CSV, NUMBERS, ODS **Presentation:** PPT, PPTX, PPS, PPSX, POTM, POTX, POT, PPSM, PPTM **OpenOffice:** ODS, ODP, OTP, ODT, OTT, **Images:** JPG, PNG, SVG, BMP, GIF, AI, DJVU, ICO, TIFF **CAD:** CF2, DGN, DWFX, DWT **Compression:** 7Z, GZIP, RAR, ZIP **Database:** LOG, NSF, SQL **Diagram:** VDX, VSD, VSDM, VSDX **eBook:** AZW3, EPUB, MOBI **Email and Outlook:** EML, EMLX, MSG, PST **Font:** CFF, EOT, OTF, TTF **Page Description Language:** CGM, PS, SVG, XPS **Project Management:** MPP, MPT, XER **Publisher:** PUB **Web:** HTML, JSON, VDW, XML ## Getting Started with GroupDocs.Conversion for Node.js via Java ### Installation From the command line: npm i @groupdocs/groupdocs.conversion ### Convert DOCX to HTML using Node.js ```js const converter = new groupdocs.conversion.Converter("sample.docx") const options = new groupdocs.conversion.MarkupConvertOptions() converter.convert("ConvertToHtml.html", options); ``` ### Convert PDF to DOCX using Node.js ```js const converter = new groupdocs.conversion.Converter("sample.pdf") const options = new groupdocs.conversion.WordProcessingConvertOptions() converter.convert("output.docx", options) ``` ### Convert Word to Presentation via Node.js ```js const converter = new groupdocs.conversion.Converter(inputFilePath) const options = new groupdocs.conversion.PresentationConvertOptions() converter.convert("output.pptx", options) ``` [Home](https://www.groupdocs.com/) | [Product Page](https://products.groupdocs.com/conversion/nodejs-java) | [Documentation](https://docs.groupdocs.com/conversion/nodejs-java/) | [Blog](https://blog.groupdocs.com/category/conversion/) | [API Reference](https://apireference.groupdocs.com/conversion/nodejs-java) | [Code Samples](https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Node.js-via-Java) | [Free Support](forum.groupdocs.com/c/conversion) | [Temporary License](https://purchase.groupdocs.com/temporary-license)