Garry Klooesterman
Senior Technical Content Creator
Published December 02, 2026
Updated December 02, 2026
5 min
How to Convert PDF to Word, Excel and PowerPoint in Node.js
Garry Klooesterman
Senior Technical Content Creator

PDFNet.Convert.fileToWord, fileToExcel, and fileToPowerPoint turn a PDF into an editable DOCX, XLSX, or PPTX file in Node.js. They require the Structured Output module, a separate download and add-on license for the Apryse Server SDK. Install @pdftron/pdfnet-node from npm, download the module, register its folder with PDFNet.addResourceSearchPath, and pass each method an input PDF and an output path.
The conversion runs in your Node.js backend on x64 Windows, Linux, and macOS, with no Microsoft Office, no LibreOffice, and no external service. It doesn’t run in the browser, so a React app sends the PDF to your backend. Output options convert a page range or choose the OCR engine for scanned pages.

Set Up the SDK and the Structured Output Module
Picture a supplier quote that lands in your procurement app as one PDF. Legal wants to redline the terms in Word, finance wants the line items in a workbook, and sales wants a few slides for the vendor review. Your app decides who gets what. The document layer has to produce all three files from the same source, and the Structured Output module does that with one setup and one call pattern.
The implementation takes five steps:
- Install the package with
npm i @pdftron/pdfnet-node. The package is the Apryse Server SDK for Node.js. - Download the Structured Output module from Node.js convert-to-office. The module is a separate download from the base Server SDK, and it needs its own add-on license.
- Copy the module into a lib folder in your project directory, then register that folder with
PDFNet.addResourceSearchPath. - Pass your license key to
PDFNet.runWithCleanup. Get your free trial key at dev.apryse.com before running the code. - Optionally, call
PDFNet.StructuredOutputModule.isModuleAvailableto confirm the module loaded before any conversion starts.
License keys are confidential. Do not commit them to public repositories. Use environment variables or a secrets manager to inject your key at runtime.
The block below registers the module folder, stops early if the module is missing, and shuts PDFNet down when the run ends. Every conversion in the next sections goes inside runQuoteConversion. The full Node.js sample runs each call in this post.
Convert PDF to Word
Legal goes first. Node.js PDF to DOCX conversion is one awaited call with an input path and an output path. Tables in the PDF arrive as Word tables that legal can edit. The result is an editable document built from the PDF, not the original authoring file.
Call convertQuoteToWord from runQuoteConversion with await. Before you ship, test it on your own files and open the results in Word. The Node.js tab of the convert-to-office reference lists every Word option.
If you want the background, read why some converters output text boxes.
Convert PDF to Excel
Finance wants the line items. The pattern stays the same, and only the method and the file extension change. The output is an editable workbook.
If your pipeline needs values rather than a workbook, extract table values as JSON with Smart Data Extraction instead. The two jobs differ: this method hands a person a file to edit, and extraction hands your code data to process. The Excel options are on the same convert-to-office reference.
Convert PDF to PowerPoint
Sales gets the slides. The call has the same shape, and the output is an editable deck built from the PDF content. It is not the original authoring file, so open each deck in PowerPoint before it reaches your users.
The convert-to-office reference covers the PowerPoint options.
Convert a Page Range
Legal only needs the terms, and the terms sit on the first three pages. Each output options class takes a page range through setPages: WordOutputOptions, ExcelOutputOptions, and PowerPointOutputOptions. Page numbers start at 1, and a negative last page converts through the end of the document.
The options object goes in as the last argument. Swap in ExcelOutputOptions or PowerPointOutputOptions with fileToExcel or fileToPowerPoint to limit those conversions the same way.
Convert Scanned PDFs with OCR
Some suppliers send a scan instead of a PDF with text. Configure OCR through the same options. Set the Paddle engine with setPreferredOCREngine, and set the language with setCustomOCRLanguage. Choose the language yourself for each batch of scans, because Paddle reads the code you set.
Paddle OCR is currently available in the Windows x64 and Linux x64 builds of the Structured Output module.
Call It From Your App
Conversion runs in your Node.js backend. A React or other browser app sends the PDF to that backend, and your backend returns the converted file. To serve conversions over HTTP with Express, follow the existing Express guide. For Next.js, see Next.js Server Actions for PDF conversion.
Requirements and Licensing
The table lists what the conversions need and where they run.
Category | Details |
|---|---|
What you need | The Apryse Server SDK for Node.js (@pdftron/pdfnet-node), the Structured Output module, and an add-on license |
Where it runs | x64 Windows, Linux, and macOS servers |
Not supported | ARM, 32-bit platforms, the browser, and mobile |
The Structured Output module needs a separate add-on license on top of the Server SDK license. Microsoft Office is not part of the requirements. Trial keys include add-on modules during evaluation. For the add-on model, read licensing and pricing.
The PDF to Office Conversion SDK page covers the product, and the full Node.js sample shows every call in one file. Get a free trial key to run the add-on end to end. The PDF to Office conversion docs (Node.js) cover every option. Talk to our team about licensing.
Frequently Asked Questions
Can I convert PDF to Word in Node.js without Microsoft Office or LibreOffice?
Yes. The Structured Output module runs inside the Apryse Server SDK on your own server, and it needs neither Microsoft Office nor LibreOffice. No external service handles your PDFs. You still need the Apryse add-on license for the module.
Can I convert PDF to DOCX in the browser or in a React app?
No. PDF to Office conversion runs only on the server through the Apryse Server SDK. A React app uploads the PDF to your Node.js backend, which runs the conversion and returns the DOCX.
Does it run in Docker or on Linux?
Yes, on x64 Linux. The Apryse Server SDK runs in Docker containers, and the Structured Output module has Linux x64 builds. ARM is not supported.
Do I need a separate license for PDF to Office conversion?
Yes. The Structured Output module is an add-on with a separate download and a separate add-on license on top of the Server SDK license. Trial keys include add-on modules for evaluation. See licensing and pricing for the add-on model.
Next Steps
Building something similar? Check out the Apryse Community to troubleshoot, swap ideas, and chat with fellow devs tackling the same hurdles.


