瀏覽代碼

Use PyPDF2 instead of pyPdf

version-14
Aditya Hase 7 年之前
父節點
當前提交
000d9a41b6
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      frappe/utils/pdf.py
  2. +1
    -1
      requirements.txt

+ 1
- 1
frappe/utils/pdf.py 查看文件

@@ -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 查看文件

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


Loading…
取消
儲存