Fixed pdftables_analysis.py to deal with new PDFDocument class

Minor fixes to pdftables_analysis which allow it to run with the new PDFDocument class