to-pdf 0.1.0

Export & Preview as PDF
Documentation
  • Coverage
  • 0%
    0 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 1.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 992.84 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bob22z

to-pdf

About

Crates.io

API Docs

Installation

Add the following to Cargo.toml:

[dependencies]
to-pdf = { git = "https://github.com/bob22z/to-pdf" }

Usage

use to_pdf::ToPdf;

// Initialize with custom fonts
let to_pdf = ToPdf::new(FONT_PATH)?;

// Export to Pdf with typst text
let pdf_content = to_pdf.to_pdf(TYPST_TEXT)?;

// Preview as Svg with typst text
let svg_content_list = to_pdf.to_svg(TYPST_TEXT)?;

License

MIT