This crate is now known as pdf-canvas.
[dependencies]
pdf-canvas = "*"
The crate name pdf will soon be used by another crate, amied at reading, modifying and writing pdf data, as opposed to the crate now known as pdf-canvas, wich is only for creating pdf files.