PdfToMarkdownConverter Class

Converts PDF documents to Markdown. The headings, paragraphs, lists, tables, code and links found in the text of the pages are written with the Markdown syntax. A converter instance can be used for a single conversion

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next.PdfProcessor (in EvoPdf.Next.PdfProcessor.dll) Version: 15.1.0
C#
public class PdfToMarkdownConverter
Inheritance
Object    PdfToMarkdownConverter

Constructors

PdfToMarkdownConverter Creates a PDF to Markdown converter with default options

Properties

DetectTables A flag indicating if the text arranged in rows and columns is written as Markdown tables. The default value is true
ImageFileName The name of the image files saved when ImageMode is File, without number and extension. The default value is "image"
ImageMode The way the images of the PDF document are written in Markdown. The default value is None
ImagesFolder The folder where the images are saved as PNG files when ImageMode is File
ImagesLinkPath The path written before the image file names in the Markdown links when ImageMode is File. By default it is the name of the images folder
IncludeLinks A flag indicating if the links of the PDF document are written as Markdown links. The default value is true
MaxPageCount Upper limit for the number of PDF pages to process. A value of 0 means there is no upper limit
OwnerPassword Owner password to open a password-protected PDF document
PdfLoaderFilePath Sets the full path of the PDF loader file
RemoveHeadersAndFooters A flag indicating if the text that repeats at the top and at the bottom of the pages, like the page headers, the page footers and the page numbers, is left out of the Markdown. The default value is true
RunTimeoutSec The maximum time in seconds allowed for a conversion. The default value is 60 seconds
UserPassword User password to open a password-protected PDF document

Methods

ConvertToMarkdown(Byte) Converts all pages of a PDF document to Markdown
ConvertToMarkdown(Stream) Converts all pages of a PDF document in a stream to Markdown
ConvertToMarkdown(String) Converts all pages of a PDF file to Markdown
ConvertToMarkdown(Byte, Int32) Converts the pages of a PDF document to Markdown, starting from a given page
ConvertToMarkdown(Stream, Int32) Converts the pages of a PDF document in a stream to Markdown, starting from a given page
ConvertToMarkdown(String, Int32) Converts the pages of a PDF file to Markdown, starting from a given page
ConvertToMarkdown(Byte, Int32, Int32) Converts a range of pages of a PDF document to Markdown
ConvertToMarkdown(Stream, Int32, Int32) Converts a range of pages of a PDF document in a stream to Markdown
ConvertToMarkdown(String, Int32, Int32) Converts a range of pages of a PDF file to Markdown
ConvertToMarkdownAsync(Byte, CancellationToken) Asynchronously converts all pages of a PDF document to Markdown
ConvertToMarkdownAsync(Stream, CancellationToken) Asynchronously converts all pages of a PDF document in a stream to Markdown
ConvertToMarkdownAsync(String, CancellationToken) Asynchronously converts all pages of a PDF file to Markdown
ConvertToMarkdownAsync(Byte, Int32, CancellationToken) Asynchronously converts the pages of a PDF document to Markdown, starting from a given page
ConvertToMarkdownAsync(Stream, Int32, CancellationToken) Asynchronously converts the pages of a PDF document in a stream to Markdown, starting from a given page
ConvertToMarkdownAsync(String, Int32, CancellationToken) Asynchronously converts the pages of a PDF file to Markdown, starting from a given page
ConvertToMarkdownAsync(Byte, Int32, Int32, CancellationToken) Asynchronously converts a range of pages of a PDF document to Markdown
ConvertToMarkdownAsync(Stream, Int32, Int32, CancellationToken) Asynchronously converts a range of pages of a PDF document in a stream to Markdown
ConvertToMarkdownAsync(String, Int32, Int32, CancellationToken) Asynchronously converts a range of pages of a PDF file to Markdown
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also