Loading src/coliverter/steps/html_to_pdf.py 0 → 100644 +8 −0 Original line number Diff line number Diff line from weasyprint import HTML def html_to_pdf(html: str) -> bytes: """ Use weasyprint to convert the given HTML string to a PDF """ return HTML(string=html).write_pdf() Loading
src/coliverter/steps/html_to_pdf.py 0 → 100644 +8 −0 Original line number Diff line number Diff line from weasyprint import HTML def html_to_pdf(html: str) -> bytes: """ Use weasyprint to convert the given HTML string to a PDF """ return HTML(string=html).write_pdf()