[#772] Work around bug#77932 in pdftohtml

Fixes #772 

Sometimes pdftohtml will generate thousands of images when converting an
image embedded in a PDF. This causes a request spike when a user tries
to view the converted PDF as HTML.

See <https://bugs.freedesktop.org/show_bug.cgi?id=77932> for the bug
report.