Click or drag to resize

PdfToWordConverter Class

The PDF to Word converter class. Converts a PDF document to an editable Word document (docx), or to rtf, OpenDocument text, html or markdown (OutputFormat).
Inheritance Hierarchy
SystemObject
  ExpertPdf.AnywherePdfToWordConverter

Namespace: ExpertPdf.Anywhere
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public class PdfToWordConverter

The PdfToWordConverter type exposes the following members.

Constructors
 NameDescription
Public methodPdfToWordConverter PDF to Word converter constructor.
Top
Properties
 NameDescription
Public propertyBookmarks The PDF's bookmarks as Word bookmarks at their targets. The default value is true.
Public propertyEmbedFonts The document's fonts embedded in the docx, so it looks like the PDF on a machine that lacks them. A font whose license forbids embedding, and a common system font, is named only. The default value is true.
Public propertyEndPageNumber The page number where the conversion will end. The default value is 0 which means that all the pages starting from StartPageNumber are converted.
Public propertyHeadersAndFooters Text repeated at the top and bottom of the pages as the document's headers and footers, page numbers as page fields. The default value is true; when false that text is left out.
Public propertyImages The PDF's images and vector art as pictures. The default value is true.
Public propertyLayout How the pages are laid out: Flowing (the default) for a document to edit, Exact for one that looks like the PDF page for page.
Public propertyLicenseKey The license key string received after the product purchase or a demo license key. When this property is null the converter runs in demo mode and marks the document it writes.
Public propertyLinks The PDF's links as hyperlinks. The default value is true.
Public propertyOutputFormat The format written. The default value is Docx.
Public propertyStartPageNumber The page number from where the conversion will start. The default value is 1.
Public propertyUserPassword The password to open the PDF document with: the user password or the owner password. The default value is null.
Top
Methods
 NameDescription
Public methodConvertToWord(Stream) Converts a PDF document read from a stream to a Word document.
Public methodConvertToWord(String) Converts a PDF file to a Word document.
Public methodConvertToWordFile(Stream, String) Converts a PDF document read from a stream to a Word document saved in a file.
Public methodConvertToWordFile(String, String) Converts a PDF file to a Word document saved in a file.
Top
Remarks
Every page is read as text, images and graphics; its 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, and the document is written with Word's heading and list styles, tables, pictures, hyperlinks, bookmarks, page setup and the document's fonts. A scanned page without a text layer comes out as its picture. The conversion runs in the application's process; no native engine is needed.
Example
PdfToWordConverter converter = new PdfToWordConverter();
converter.LicenseKey = "...";
converter.ConvertToWordFile("report.pdf", "report.docx");
See Also