Skip to content

Commit

Permalink
fix: rename deprecated functions to avoid warnings
Browse files Browse the repository at this point in the history
fix #21
  • Loading branch information
vzhd1701 committed Apr 8, 2022
1 parent 04bb542 commit 74246ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enex2notion/note_parser_webclip_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def _get_pdf_preview(pdf_bin: bytes):

def _get_pdf_first_page_png(pdf_bin: bytes): # pragma: no cover
doc = fitz.open("pdf", pdf_bin)
page = doc.loadPage(0)
pix = page.getPixmap()
return pix.getImageData()
page = doc.load_page(0)
pix = page.get_pixmap()
return pix.tobytes()


def _convert_local_images(note_dom: Tag, note: EvernoteNote):
Expand Down

0 comments on commit 74246ef

Please sign in to comment.