MarkdownToPdfAliases.

MarkdownToPdf(ICakeContext, string, FilePath, Action<Settings>) Method

Summary

Converts a markdown string to pdf file.

Syntax

public static void MarkdownToPdf(this ICakeContext context, string markdownText, FilePath outputFile, Action<Settings> settingsAction = null)

Examples

Task("Convert")
  .Does(() => {        
    MarkdownToPdf("Some text in Markdown format...", "output.pdf");
});

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The ICakeContext.
markdownText string The markdown string to convert.
outputFile FilePath The name of the pdf file to create.
settingsAction Action<Settings> Settings used for convertion

Return Value

Type Description
void