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.
generated by LDoc 1.5.0 Last updated 2025-10-30 05:53:56