Did you find this guide helpful?
Some test text!
Nodejs / Guides
To convert PDF Documents to Word format.
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.
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.
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: Chat with us