Cargo Features

[dependencies]
pdf = { version = "0.9.0", default-features = false, features = ["mmap", "dump", "threads", "sync", "cache", "euclid"] }
default = cache, sync

These default features are set whenever pdf is added without default-features = false somewhere in the dependency tree.

mmap = memmap2
dump = tempfile

Affects error::dump_data

threads

Enables jpeg-decoder

sync default
cache default = globalcache

Affects file::ObjectCache, file::StreamCache, file::CachedFile

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

memmap2 mmap?

Enables memmap2 ^0.5.0

tempfile dump?
euclid implicit feature

Enables euclid

euclid:

Geometry primitives

Affects content::PdfSpace

globalcache cache

Enables globalcache ^0.2