Rewrote PDF processing into a serial style.
Added missing package.