Method ConvertFileToFile
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
ConvertFileToFile(string, string, MarkdownToPdfOptions)
Converts a Markdown file into a PDF file.
public static void ConvertFileToFile(string markdownPath, string outputPath, MarkdownToPdfOptions options = null)
Parameters
markdownPathstringPath to the Markdown file.
outputPathstringPath where the output PDF will be written.
optionsMarkdownToPdfOptionsOptional conversion options for page size, margins, and font size.
Exceptions
- ArgumentNullException
Thrown when
markdownPathoroutputPathisnull.- FileNotFoundException
Thrown when the specified Markdown file does not exist.