Fixed PDF import issues, thanks @QubaB on GitHub
