Some test text!

Loading...
Guides
Convert PDF to MS Office

Convert PDF to MS Office (Word, Excel, PowerPoint) in .NET Core

Convert PDFs to MS Office (DOCX, XLSX, PPTX) without any external third party dependencies.

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 .

Setup

  1. Download the Structured Output Module that allows PDF to Office conversion.
  2. Place it in the directory of your project, in a folder called lib and then reference it in the below sample.

Convert PDF to Word

This sample demonstrates how to convert from a PDF to DOCX file.

Convert.WordOutputOptions wordOutputOptions = new Convert.WordOutputOptions();

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

// Requires the Structured Output module
Convert.ToWord(filename, output_filename, wordOutputOptions);

Convert PDF to PowerPoint

This sample demonstrates how to convert from a PDF to PPTX file.

Convert.PowerPointOutputOptions powerPointOutputOptions = new Convert.PowerPointOutputOptions();

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

// Requires the Structured Output module
Convert.ToPowerPoint(filename, output_filename, powerPointOutputOptions);

Convert PDF to Excel

This sample demonstrates how to convert from a PDF to XLSX file.

Convert.ExcelOutputOptions excelOutputOptions = new Convert.ExcelOutputOptions();

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

// Requires the Structured Output module
Convert.ToExcel(filename, output_filename, excelOutputOptions);

Convert PDF files to MS Office
Full sample code which illustrates how to convert PDF to MS Office files (Word, Excel, PowerPoint).

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