bbCodeToCanvasSync
Description
Generates a canvas by following a specific format including images, canvas are mainly used for printing.
Platform Supported
Web
Mobile
Input / Parameter
Text Format
Bold:
[b]
The text to apply bold.[/b]
Italic:
[i]
The text to apply italic.[/i]
Image:
[img|x={number}|y={number}|width={number}|height={number}]
The image to be rendered, a base64 or url. The image url must not block CORS.[/img]
Font: The text to apply the font.
[/font]
Size:
[size={number}]
The text to apply the size.[/size]
Linespace:
[linespace={number}]
The text to apply the linespace.[/linespace]
Alignment:
[alignment={left|right}]
The text to apply the alignment, where it will start.[/alignment]
Underline:
[u]
The text to apply underline.[/u]
Strikethrough:
[s]
The text to apply strikethrough.[/s]
Output
N/A
Callback
callback
The function to be executed when the canvas is generated successfully.
errCallback
The function to be executed when the canvas is not generated.
Last updated