diff --git a/README.md b/README.md index 837a85b..e046d51 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,7 @@ `printpdf` is a Rust library for creating PDF documents. -[Crates.io](https://crates.io/crates/printpdf) | \ -[Documentation](https://docs.rs/printpdf) | \ -[Donate to this project](https://github.com/sponsors/fschutt) +[Crates.io](https://crates.io/crates/printpdf) | [Documentation](https://docs.rs/printpdf) | [Donate to this project](https://github.com/sponsors/fschutt) ## Features @@ -164,64 +162,53 @@ let pdf_bytes: Vec = doc.with_pages(page1).save_to_bytes(); For creating tables, etc. printpdf uses a basic layout system using the `azul-layout` crate. ```rust -// --features="html" - - // how to style footnote (empty = no footnotes) - footnotes: "{ font-family:serif;font-size:14px; }", - // how to style the header of a page (here: display the section-title attribute of a node + the page number) - // by default `.pagenum` is set to display:none, i.e. don't display the page number - header: "{ - min-height: 8mm; - font-family:sans-serif; - .section-title { font-weight: bold; } - .pagenum { display:block; position:absolute; top:5mm; left: 5mm; } - }", - footer: "", // no footer +// needs --features="html" +use printpdf::*; let html = r#" - - - - -
- - - - -
- - -