Skip to Content
NexPDF

Conversion

Open Word, Excel, PowerPoint and image files as PDF, and export PDFs to Office, HTML, CSV, JSON, XML and RTF, in an Electron window with NexPDF.

English

License module

Opening Office files and exporting to Office, HTML and data formats need the conversion module (Startup tier and above). Opening pictures needs no module.

Open other formats

File, Open… accepts PDF, PNG, JPEG, TIFF, DOCX, XLSX and PPTX files. Word, Excel and PowerPoint files are converted to PDF, and each picture becomes a page. The same works from code:

await pdf.open('/path/to/proposal.docx');

Word files keep their section columns, conditional table styles, wrapping along wrap polygons and tables in text boxes, and their comments become PDF text annotations at the commented text, with replies and resolved state. Excel formulas without a cached value are calculated (about 280 functions, dynamic arrays, LET and LAMBDA; circular references as the workbook's iterative calculation settings say), and conditional formatting draws every icon set and data bar. Right-to-left and complex scripts in Word, Excel, PowerPoint and HTML are shaped with OpenType and ordered with the Unicode bidi algorithm.

Export: the Convert mode

The Convert mode (ai) exports the document as DOCX, XLSX, PPTX, HTML, CSV, JSON, XML or RTF. The window asks where to save each file. It also runs OCR.

{ "modeConfig": { "availableModes": ["viewer", "ai"] } }

Pass the configuration as the path of a JSON file; see Viewing pages.

Download for the web

The More menu's Download for the web (Fast Web View) saves a linearized PDF, which shows its first page before the whole file has downloaded.

From code

To convert in code, without a window, use the document API (openDocumentFile, then the calls of the Node.js SDK). It also has the conversion options the window does not offer: Word comments in balloons and tracked changes as markup, and a fixed clock for NOW() and TODAY() in Excel:

const fs = require('node:fs');
const { documents } = require('@nexdevit/nexpdf-electron');
const { PdfDocument, WasmDocument } = documents();

const marked = new PdfDocument(WasmDocument.openDocxWithOptionsJson(fs.readFileSync('contract.docx'), '{"show_comments":true,"show_revisions":true}'));
await marked.save('contract-markup.pdf');

const sheet = new PdfDocument(WasmDocument.openXlsxWithClock(fs.readFileSync('report.xlsx'), Date.UTC(2026, 10, 29) / 1000));
await sheet.save('report.pdf');

show_comments draws the comments in a markup area at the right of each page (the page content scaled down, as Word prints with markup); show_revisions shows insertions, deletions and change bars instead of the final document. The clock is in Unix seconds, with no time zone applied.

On this page