xpdf integration for #30