DrawMarkdownText

Text, Markdown, Page layout

Description

Converts and draws Markdown at the requested position through the existing cached HTML layout engine

Syntax

Delphi

Function TPDFlib.DrawMarkdownText(Left, Top, Width: Double; Const Markdown: WideString): Integer;

ActiveX

Function PDFlib::DrawMarkdownText(Left As Double, Top As Double, Width As Double, Markdown As String) As Long

DLL

int DLDrawMarkdownText(int InstanceID, double Left, double Top, double Width, const wchar_t * Markdown);

Parameters

LeftHorizontal position of the layout box
TopVertical position of the layout box
WidthAvailable layout width
MarkdownMarkdown source or a continuation token returned by DrawMarkdownTextBox

Return values

Returns 1 when the width is valid, or 0 otherwise

Remarks

A repeated source reuses its converted HTML and measured layout plan

The DLL DLDrawMarkdownTextA variant accepts text according to the configured ANSI mode

Code spans and blocks retain literal ampersands, angle brackets, and entity spellings in the rendered PDF