Преглед изворни кода

chore(deps): Bumped pdfkit from 0.6.1 to 1.0.0

* Updated from_string API to match latest signature
* changelog: https://github.com/JazzCore/python-pdfkit/blob/master/HISTORY.rst
version-14
Gavin D'souza пре 3 година
родитељ
комит
3aef47200b
2 измењених фајлова са 2 додато и 2 уклоњено
  1. +1
    -1
      frappe/utils/pdf.py
  2. +1
    -1
      requirements.txt

+ 1
- 1
frappe/utils/pdf.py Прегледај датотеку

@@ -35,7 +35,7 @@ def get_pdf(html, options=None, output=None):

try:
# Set filename property to false, so no file is actually created
filedata = pdfkit.from_string(html, False, options=options or {})
filedata = pdfkit.from_string(html, options=options or {}, verbose=True)

# https://pythonhosted.org/PyPDF2/PdfFileReader.html
# create in-memory binary streams from filedata and create a PdfFileReader object


+ 1
- 1
requirements.txt Прегледај датотеку

@@ -32,7 +32,7 @@ openpyxl~=3.0.7
parse~=1.19.0
passlib~=1.7.4
paytmchecksum~=1.7.0
pdfkit~=0.6.1
pdfkit~=1.0.0
Pillow~=9.0.0
premailer~=3.8.0
psutil~=5.8.0


Loading…
Откажи
Сачувај