Browse Source

Merge pull request #3913 from adityahase/fix-pypdf

Use PyPDF2 instead of pyPdf
version-14
Rushabh Mehta 8 years ago
committed by GitHub
parent
commit
1d6ba9d685
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 import _
from bs4 import BeautifulSoup
from pyPdf import PdfFileWriter, PdfFileReader
from PyPDF2 import PdfFileWriter, PdfFileReader

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


+ 1
- 1
requirements.txt View File

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


Loading…
Cancel
Save