python - Extract table from a PDF -


i trying extract table pdf document

i tried route of pdf -> html -> extract table. pdf mentioned above when converted html produces garbage, maybe because of font, document not in english.

extracting pdf using x , y coordinate not option solution needs work future pdf url mention above have table not in same position.

please help,

thanks in advance.

the pdf not contain explicit table data. contains lines , character glyphs tend interpret tables. task involves putting our human table recognition capabilities code quite task.

generally speaking, if sure enough future pdfs generated same software in similar manner, might worth time investigate file easy follow hints recognize contents of individual fields.

your specific document, though, has additional shortcoming: it not contain required information direct text extraction! can try copying & pasting adobe reader , you'll (at least do) semi-random characters winansi range.

this due fact fonts in document claim use winansiencoding though characters referenced way definitively not winansi character selection.

thus reliable text extraction document without ocr impossible after all!

(trying copy&paste adobe reader first test whether text extraction feasible @ all; text extraction methods of reader have been developed many many years and, therefore, have become quite good. if cannot extract sensible acrobat reader, text extraction difficult task indeed.)


Comments