forked from fschutt/printpdf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
114 lines (98 loc) · 2.79 KB
/
Cargo.toml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[package]
name = "printpdf"
version = "0.6.0"
authors = ["Felix Schütt <[email protected]>", "Julien Schminke <[email protected]"]
repository = "https://github.com/fschutt/printpdf"
homepage = "https://github.com/fschutt/printpdf"
license = "MIT"
readme = "README.md"
description = "Rust library for writing PDF files"
keywords = ["pdf", "gui", "graphics", "wkhtmltopdf"]
categories = ["gui"]
exclude = ["./assets/*", "./doc/*", "./examples/*"]
autoexamples = false
edition = "2021"
[dependencies]
# minimum dependencies
lopdf = { version = "0.31.0", default-features = false, features = [
"pom_parser",
] }
owned_ttf_parser = { version = "0.12", default-features = false }
time = { version = "0.3.25", default-features = false, features = ["std"] }
# optional: logging
log = { version = "0.4.8", optional = true }
# image reading (png / jpeg)
image = { version = "0.24.3", optional = true, default-features = false, features = [
"gif",
"jpeg",
"png",
"pnm",
"tiff",
"bmp",
] }
# svg support (svg -> pdf xobject)
svg2pdf = { version = "0.1.0", optional = true }
pdf-writer = { version = "0.4.1", optional = true }
usvg = { version = "0.19.0", optional = true }
allsorts = { version = "0.14", optional = true, default-features = false, features = ["flate2_rust"] }
[features]
default = []
# do not compress PDF streams, useful for debugging
less-optimization = []
# enables logging
logging = ["log"]
# enables image support with some basic formats
embedded_images = ["image"]
# enables extra image formats
ico = ["image/ico", "embedded_images"]
tga = ["image/tga", "embedded_images"]
hdr = ["image/hdr", "embedded_images"]
jpeg_rayon = ["image/jpeg_rayon", "embedded_images"]
dxt = ["image/dxt", "embedded_images"]
dds = ["image/dds", "embedded_images"]
webp = ["image/webp", "embedded_images"]
# enables svg
svg = ["svg2pdf", "usvg", "pdf-writer"]
font_subsetting = ["dep:allsorts"]
# enables annotations
annotations = ["pdf-writer"]
[package.metadata.docs.rs]
all-features = true
[target.'cfg(all(target_arch="wasm32",target_os="unknown"))'.dependencies]
js-sys = "0.3.40"
[badges]
travis-ci = { repository = "fschutt/printpdf" }
appveyor = { repository = "fschutt/printpdf" }
[[example]]
name = "bookmark"
required-features = []
[[example]]
name = "circle"
required-features = []
[[example]]
name = "font"
required-features = []
[[example]]
name = "image"
required-features = ["embedded_images"]
[[example]]
name = "image_alpha"
required-features = ["embedded_images"]
[[example]]
name = "no_icc"
required-features = []
[[example]]
name = "page"
required-features = []
[[example]]
name = "shape"
required-features = []
[[example]]
name = "svg"
required-features = ["svg"]
[[example]]
name = "annotations"
required-features = []
[[example]]
name = "hyperlink"
required-features = ["annotations"]