Add support for PDF conversion using poppler

It tries to be smart and use an image if it exists,
however, the code is pretty slow as it will convert
to RGB24 and back again to monochrome.