ExpertPdf Anywhere v22.0.0

PDF to Word Converter for .NET

Convert PDF documents to editable Word documents from C# and VB.NET: DOCX, or RTF, OpenDocument text, HTML and Markdown. The text is grouped into paragraphs with their role and read across its columns in reading order, and written with Word's heading and list styles, tables, pictures, links and the document's fonts.

The PDF to Word converter is part of ExpertPdf Anywhere, the .NET library with every ExpertPdf tool. It runs in the application's process on Windows, Linux and macOS, with no native engine and no Microsoft Office.

NuGet · ExpertPdf.Anywhere C# & VB.NET samples
Input PDF file or stream
Output DOCX, RTF, ODT, HTML, Markdown
Package ExpertPdf.Anywhere only

Everything PDF to Word does.

How the pages of the PDF are read, and what the Word document carries.

Reading the PDF

What is recognized.

Every page is read as text, images and graphics.

Paragraphs and their roles

Title, headings, list items, captions, footnotes, headers and footers, written with Word's heading and list styles.

Columns and reading order

Text set in columns is read across the columns in reading order.

Tables and pictures

Tables become Word tables, and the pictures of the pages are kept.

Links and bookmarks

Hyperlinks stay links, and bookmarks are written to the Word document.

Scanned pages

A scanned page without a text layer comes out as its picture.

Pages and passwords

Convert a range of pages with StartPageNumber and EndPageNumber; open a protected document with UserPassword.

Writing the document

What comes out.

A document to edit, or one that keeps the pages of the PDF.

Flowing or exact

PdfToWordLayout.Flowing (the default) for a document to edit, PdfToWordLayout.Exact for one that looks like the PDF page for page.

Five formats

DOCX, RTF, OpenDocument text (ODT), HTML and Markdown, with OutputFormat.

Page setup and fonts

The page setup of the PDF, and the document's fonts embedded in the Word document (EmbedFonts).

What it carries

Images, HeadersAndFooters, Links, Bookmarks and EmbedFonts, all on by default, choose what the document carries.

A file or bytes

ConvertToWordFile from a PDF file or stream to a file; ConvertToWord returns the document as bytes.

In the application's process

No native engine and no platform package: only ExpertPdf.Anywhere, on Windows, Linux and macOS.

A PDF, as a Word document.

Create a PdfToWordConverter from the ExpertPdf.Anywhere namespace, choose the layout and the format, and convert. The tabs write an editable DOCX, three pages in the exact layout, and the document as Markdown.

Program.cs · C#
using ExpertPdf.Anywhere;

var converter = new PdfToWordConverter();
// converter.LicenseKey = "your license key";

// Flowing (the default): paragraphs, headings and tables to edit
converter.Layout = PdfToWordLayout.Flowing;

converter.ConvertToWordFile("report.pdf", "report.docx");

Install with dotnet add package ExpertPdf.Anywhere. The PDF to Word, Excel and PowerPoint topic describes every option, and the online sample converts a sample PDF or your own to a Word document.

PDF to Word questions, answered.

Common questions about editing, layout, formats and licensing.

Is the Word document editable?
Yes. With the flowing layout (the default) the text is written as paragraphs in Word's heading and list styles, with tables, pictures, hyperlinks and bookmarks, so it can be edited like any Word document. The exact layout (PdfToWordLayout.Exact) keeps the look of the PDF page for page instead.
Which formats can it write?
DOCX by default, and with OutputFormat RTF, OpenDocument text (ODT), HTML or Markdown. ConvertToWordFile writes a file and ConvertToWord returns the document as bytes.
Does it keep the columns and the reading order?
Yes. Every page is read as text, images and graphics, the text is grouped into paragraphs with their role (title, headings, list items, captions, footnotes, headers and footers) and read across its columns in reading order.
What about scanned PDF documents?
A scanned page without a text layer comes out as its picture. The converter does not recognize the text of images.
Does it need Microsoft Word or a native engine?
No. PdfToWordConverter runs in the application's process on Windows, Linux and macOS, with only the ExpertPdf.Anywhere package: no Office and no platform package.
Can it convert a password protected PDF or only some pages?
Yes. Set UserPassword to the user or the owner password, and StartPageNumber and EndPageNumber to the pages to convert (the first page is 1; an end page of 0 means the last page). A document that cannot be read or converted throws PdfToWordException.
How is it licensed?
PDF to Word is part of ExpertPdf Anywhere, with every other ExpertPdf tool, from $700. Without a license key it runs in demo mode and each converted file carries an evaluation line. License it on the pricing page.

Convert PDF to Word from .NET.

Install ExpertPdf Anywhere from NuGet and try every feature in evaluation mode. License it on the pricing page when you are ready.

Targets.NET Standard 2.0 · .NET 8 · .NET 10 · Windows · Linux · macOS
Versionv22.0.0