浏览代码

Merge pull request #3913 from adityahase/fix-pypdf

Use PyPDF2 instead of pyPdf
version-14
Rushabh Mehta 8 年前
committed by GitHub
父节点
当前提交
1d6ba9d685
共有 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.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 查看文件

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


正在加载...
取消
保存