better import formatting for core.py
make eraser handle more pdf formats