lebedov / python-pdfbox

Python interface to Apache PDFBox command-line tools.
Other
75 stars 24 forks source link

it just hang on win10 #19

Open SeekPoint opened 4 years ago

lebedov commented 4 years ago

Can you provide more information? What version of python-pdfbox, Python, etc. are you using? How are you invoking python-pdfbox?

SeekPoint commented 4 years ago

after run 'pip install python-pdfbox' on win10,

then:

import pdfbox p = pdfbox.PDFBox() p.extract_text('/path/to/my_file.pdf') # writes text to /path/to/my_file.txt p.pdf_to_images('/path/to/my_file.pdf') # writes images to /path/to/my_file1.jpg, /path/to/my_file2.jpg, etc. p.extract_images('/path/to/my_file.pdf') # writes images to /path/to/my_file-1.png, /path/to/my_file-2.png, etc.