DrawMarkdownTextBox

Text, Markdown, Page layout

Description

Draws as much Markdown as fits in a rectangular area and returns the remaining layout state

Syntax

Delphi

Function TPDFlib.DrawMarkdownTextBox(Left, Top, Width, Height: Double; Const Markdown: WideString): WideString;

ActiveX

Function PDFlib::DrawMarkdownTextBox(Left As Double, Top As Double, Width As Double, Height As Double, Markdown As String) As String

DLL

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

Parameters

LeftHorizontal position of the layout box
TopVertical position of the layout box
WidthAvailable layout width
HeightAvailable layout height
MarkdownOriginal Markdown or the opaque continuation token returned by a previous call

Return values

Returns an empty string when all content was drawn, otherwise an opaque token that can be supplied to the same method on the next page

Remarks

The continuation token preserves partially consumed HTML and inline style state and must not be edited or displayed as source Markdown

The DLL DLDrawMarkdownTextBoxA variant accepts and returns text according to the configured ANSI mode