Added some more functionality to pdf import