This crate implements minimal conversion from HTML to PDF.
ToDo: Line wrapping. Html entities ( & symbols ). Proper parsing of tags ( currently using > in a tag does not work correctly ). Html tables, font sizing.
Test example
use pdf_min::*;
let source = format!("
Rust is Great
Important Notice
Hello something
Hi italic test
Hi bold italic test
Test sup
Test sub
{}
"," more stuff".repeat(50));
let mut w = Writer::default();
html(&mut w, source.as_bytes());
w.finish();
use std::fs::File;
use std::io::prelude::*;
let mut file = File::create("test.pdf").unwrap();
file.write_all(&w.b.b).unwrap();