Paragraphs and their roles
Title, headings, list items, captions, footnotes, headers and footers, written with Word's heading and list styles.
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.
Documentation · Online samples · NuGet · Download .zip (v22.0.0) · PDF to Word docs · PDF to Word online sample
How the pages of the PDF are read, and what the Word document carries.
Every page is read as text, images and graphics.
Title, headings, list items, captions, footnotes, headers and footers, written with Word's heading and list styles.
Text set in columns is read across the columns in reading order.
Tables become Word tables, and the pictures of the pages are kept.
Hyperlinks stay links, and bookmarks are written to the Word document.
A scanned page without a text layer comes out as its picture.
Convert a range of pages with StartPageNumber and EndPageNumber; open a protected document with UserPassword.
A document to edit, or one that keeps the pages of the PDF.
PdfToWordLayout.Flowing (the default) for a document to edit, PdfToWordLayout.Exact for one that looks like the PDF page for page.
DOCX, RTF, OpenDocument text (ODT), HTML and Markdown, with OutputFormat.
The page setup of the PDF, and the document's fonts embedded in the Word document (EmbedFonts).
Images, HeadersAndFooters, Links, Bookmarks and EmbedFonts, all on by default, choose what the document carries.
ConvertToWordFile from a PDF file or stream to a file; ConvertToWord returns the document as bytes.
No native engine and no platform package: only ExpertPdf.Anywhere, on Windows, Linux and macOS.
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.
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.
Also in ExpertPdf Anywhere: Cross-platform HTML to PDF, Word to PDF, Excel to PDF, PowerPoint to PDF, PDF to Excel, PDF to PowerPoint, and every other ExpertPdf tool.
Common questions about editing, layout, formats and licensing.
PdfToWordLayout.Exact) keeps the look of the PDF page for page instead.OutputFormat RTF, OpenDocument text (ODT), HTML or Markdown. ConvertToWordFile writes a file and ConvertToWord returns the document as bytes.PdfToWordConverter runs in the application's process on Windows, Linux and macOS, with only the ExpertPdf.Anywhere package: no Office and no platform package.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.Install ExpertPdf Anywhere from NuGet and try every feature in evaluation mode. License it on the pricing page when you are ready.