Skip to content

Instantly share code, notes, and snippets.

@clairesg
clairesg / .py
Created September 4, 2021 23:34 — forked from manucabral/converter.py
import fitz
import pytesseract
def convert_to_img(pdf):
doc = fitz.open(pdf)
page = doc.loadPage(0)
pix = page.getPixmap()
output = f"{pdf.split(".")[0]}.png"
pix.writePNG(output)
@clairesg
clairesg / ddddgds
Created September 4, 2021 23:34
dvvvdgddd
fbfbfdd