Module ui.widget.htmlboxwidget
HTML widget (without scroll bars).
Functions
| HtmlBoxWidget:setRawContent (body, magic, default_font_size, resource_directory) | Use the raw content as given, without any string manipulation to try to improve MuPDF compatibility or rendering. |
Functions
- HtmlBoxWidget:setRawContent (body, magic, default_font_size, resource_directory)
-
Use the raw content as given, without any string manipulation to try to improve MuPDF compatibility or rendering.
Parameters:
- body string Content to be rendered in a supported format like (X)HTML or SVG.
- magic string Used to detect document type, like a file name or mime-type.
- default_font_size number Default font size to use for layout, only for some formats like HTML.
- resource_directory string Directory to use for resolving relative resource paths.