Some test text!

Loading...
Guides

Convert PDF to Office in Node.js

To convert PDF Documents to Word format.

The Structured Output module is an optional add-on
Only available on Desktop and Server (Windows, Linux, or Mac)
You can find more details about how to install the Structured Output module here .
async function main() {
  const wordOutputOptions = new PDFNet.Convert.WordOutputOptions();

  // Optionally convert only the first page
  wordOutputOptions.setPages(1, 1);

  // Requires the Structured Output module
  await PDFNet.Convert.fileToWord(filename, output_filename, wordOutputOptions);
}
PDFNet.runWithCleanup(main);

To convert PDF Documents to Excel format.

The Structured Output module is an optional add-on
Only available on Desktop and Server (Windows, Linux, or Mac)
You can find more details about how to install the Structured Output module here .
async function main() {
  const excelOutputOptions = new PDFNet.Convert.ExcelOutputOptions();

  // Optionally convert only the first page
  excelOutputOptions.setPages(1, 1);

  // Requires the Structured Output module
  await PDFNet.Convert.fileToExcel(filename, output_filename, excelOutputOptions);
}
PDFNet.runWithCleanup(main);

To convert PDF Documents to PowerPoint format.

The Structured Output module is an optional add-on
Only available on Desktop and Server (Windows, Linux, or Mac)
You can find more details about how to install the Structured Output module here .
async function main() {
  const powerPointOutputOptions = new PDFNet.Convert.PowerPointOutputOptions();

  // Optionally convert only the first page
  powerPointOutputOptions.setPages(1, 1);

  // Requires the Structured Output module
  await PDFNet.Convert.fileToPowerPoint(filename, output_filename, powerPointOutputOptions);
}
PDFNet.runWithCleanup(main);

Convert PDF to Office
Full sample code which shows how to convert generic PDF documents to Word, Excel, PowerPoint format

Get the answers you need: Support

Upcoming Webinar: Customer Experience and Retaining Control: Boosting Document Automation and Efficiency in Financial Services | Sept 15, 2022 at 11 am PT

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use