We recommend using the most up-to-date version of pip
and wheel
packages, so first run:
pip install -U pip wheel
Then install PDFMap with:
pip install pdfmap
Simple usage can be achieved with:
from pdfmap import PDFWordMap
pdfwm = PDFWordMap()
print(pdfwm.parse_pdf('folder/pdfname.pdf'))
You can also extract wordmaze.WordMaze
instances by using PDFMaze
:
from pdfmap import PDFMaze
pdfmaze = PDFMaze()
print(pdfmaze.parse_pdf('folder/pdfname.pdf'))
For other examples, check out our example script