I have the code below which creates a pdf
file in memory.
pdf = pytesseract.image_to_pdf_or_hocr(self.main_window.filename, extension='pdf')
I want to save that pdf file in disk so that I can view it. How will I do it in python?
I have the code below which creates a pdf
file in memory.
pdf = pytesseract.image_to_pdf_or_hocr(self.main_window.filename, extension='pdf')
I want to save that pdf file in disk so that I can view it. How will I do it in python?