Browse Source

Use PyPDF2 instead of pyPdf

version-14
Aditya Hase 7 years ago
parent
commit
000d9a41b6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      frappe/utils/pdf.py
  2. +1
    -1
      requirements.txt

+ 1
- 1
frappe/utils/pdf.py View File

@@ -6,7 +6,7 @@ import pdfkit, os, frappe
from frappe.utils import scrub_urls from frappe.utils import scrub_urls
from frappe import _ from frappe import _
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from pyPdf import PdfFileWriter, PdfFileReader
from PyPDF2 import PdfFileWriter, PdfFileReader


def get_pdf(html, options=None, output = None): def get_pdf(html, options=None, output = None):
html = scrub_urls(html) html = scrub_urls(html)


+ 1
- 1
requirements.txt View File

@@ -42,7 +42,7 @@ psutil
unittest-xml-reporting unittest-xml-reporting
oauthlib oauthlib
PyJWT PyJWT
pypdf
PyPDF2
openpyxl openpyxl
pyotp pyotp
pyqrcode pyqrcode


Loading…
Cancel
Save