Fixed fallback pdf handling