PDF: speed up fz_predict_tiff (for issue 2518)