THPDFHTMLImporter.RenderHTML5

Renders HTML through the bounded HTML5 paged-media profile and returns True when at least one block has been emitted

function RenderHTML5(const HTML: WideString;
  const AuthorStyleSheet: WideString= ''): Boolean;

The unit is HPDFHTMLImport; the author style sheet is parsed after the document cascade, so its rules override author declarations of equal specificity

Tables, form controls, flex containers and grid containers take part in paged layout; CreateAcroForms turns HTML forms into AcroForm fields rather than static text

The DOM node, CSS rule, layout-operation and resource budgets plus MaxDecodedImageBytes are enforced whilst rendering, and exceeding one raises EHPDFHTMLImportBudget

Unsupported CSS produces diagnostics unless StrictCSS is switched on

HTML5 paged-media import