Html to PDF
Utilizado para criar PDF através de HTML.
Atalhos
Métodos
From string
-- @param html The string containing the HTML.
-- @returns The bytes of the generated PDF
htmltopdf.from_string(html)-- example usage:
local html = "<html><body><h1>Meu HTML em PDF</h1></body></html>"
local bytes = htmltopdf.from_string(html)From url
-- @param url The url to get the HTML
-- @returns The bytes of the generated PDF
htmltopdf.from_url(url)-- example usage:
local bytes = htmltopdf.from_url("https://www.google.com/")