Document Tools
HTML para PDF (Layout Preciso)
Renderize HTML/CSS em PDF com cabeçalho, rodapé e ajustes precisos
file· Resultado de arquivoAbrir ferramenta
Início rápido
Chame esta ferramenta a partir do seu código em três idiomas.
cURL
curl -X POST 'https://api.elysiatools.com/pt/api/tools/html-to-pdf-precise' \
-H 'Content-Type: application/json' \
-d '{"htmlContent":"<h1>Hello PDF</h1><p>Write your HTML here...</p>","cssContent":"/* Optional custom styles */","pageSize":"A4","landscape":false,"printBackground":true,"scale":1,"marginTop":20,"marginBottom":20,"marginLeft":20,"marginRight":20,"headerTemplate":"<div style=\"font-size:10px; width:100%; text-align:center;\"><span class=\"pageNumber\"></span>1/20<span class=\"totalPages\"></span></div>","footerTemplate":"<div style=\"font-size:10px; width:100%; text-align:center;\">Confidential</div>","mediaType":"print","waitUntil":"networkidle0","waitTime":3000,"preferCssPageSize":false}'