to-pdf
About
Installation
Add the following to Cargo.toml:
[]
= { = "https://github.com/bob22z/to-pdf" }
Usage
use ToPdf;
// Initialize with custom fonts
let to_pdf = new?;
// Export to Pdf with typst text
let pdf_content = to_pdf.to_pdf?;
// Preview as Svg with typst text
let svg_content_list = to_pdf.to_svg?;
License
MIT