write_pdf
Mojo function 🡭
write_pdf
fn def write_pdf(mut pdf: PdfCanvas, path: String)Write pdf to path, the PDF counterpart to write_png and write_svg.
Args:
- pdf (
PdfCanvas): Document to write. - path (
String): File path to write to.
Raises:
Error: path can’t be opened for writing.