We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e28b680 commit e43994bCopy full SHA for e43994b
README.rst
@@ -81,6 +81,8 @@ USAGE
81
82
# Get a searchable PDF
83
pdf = pytesseract.image_to_pdf_or_hocr('test.png', extension='pdf')
84
+ with open('test.pdf', 'w+b') as f:
85
+ f.write(pdf) # pdf type is bytes by default
86
87
# Get HOCR output
88
hocr = pytesseract.image_to_pdf_or_hocr('test.png', extension='hocr')
0 commit comments