Cargo Features

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


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.

memmap2 mmap?

Enables memmap2 ^0.5.0

tempfile dump?
euclid implicit feature

Enables euclid


Geometry primitives

Affects content::PdfSpace

globalcache cache