1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! This crate implements minimal conversion from HTML to PDF.
//!
//! ToDo:
//! Proper parsing of tag attibutes.
//! Font sizing, html tables.
//! Img tag in html, with support for jpegs ( using new image module ).
//!# Test example
//!
//! ```
//! use pdf_min::*;
//! let source = format!("
//!<html>
//!<head>
//! <title>Rust is Great</title>
//!</head>
//!<body>
//!<h1>Important Notice!</h1>
//!<p>Hello <b>something bold</b> ok</p>
//!<p>Hi <i>italic test</i>
//!<p>Hi <i><b>bold italic test</b> ok</i>
//!<p>Hi <sup>sup test</sup> ok
//!<p>Hi <sub>sub text</sub> ok
//!<p>{}
//!</body>
//!</html>
//!","Some words to cause Line and Page wrapping ".repeat(200));
//! let mut w = Writer::default();
//! w.b.nocomp = true;
//! w.line_pad = 8; // Other Writer default values could be adjusted here.
//! html(&mut w, source.as_bytes());
//! let bytes = w.finish();
//!
//! use std::fs::File;
//! use std::io::prelude::*;
//!
//! let mut file = File::create("test.pdf").unwrap();
//! file.write_all(bytes).unwrap();
//! ```
/// Low level PDF writer.
/// PDF fonts.
/// PDF images.
/// PDF page.
/// High level PDF writer.
pub use ;
use *;
use *;
use *;
use *;