Table of Contents

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

markdownPath string

Path to the Markdown file.

outputPath string

Path where the output PDF will be written.

options MarkdownToPdfOptions

Optional conversion options for page size, margins, and font size.

Exceptions

ArgumentNullException

Thrown when markdownPath or outputPath is null.

FileNotFoundException

Thrown when the specified Markdown file does not exist.