Skip to content

Commit

Permalink
Remove the deprecated PfdMerger
Browse files Browse the repository at this point in the history
From pypdf 5.0.0
  • Loading branch information
raimonesteve committed Sep 24, 2024
1 parent 18cbcce commit f9d6960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jasper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import zipfile
from io import BytesIO
from urllib.parse import urlparse
from pypdf import PdfReader, PdfMerger
from pypdf import PdfReader, PdfWriter
from trytond.report import Report
from trytond.report.report import TranslateFactory
from trytond.config import config as config_
Expand Down Expand Up @@ -376,7 +376,7 @@ def addonsPath(cls):

@classmethod
def merge_pdfs(cls, pdfs_data):
merger = PdfMerger()
merger = PdfWriter()
for pdf_data in pdfs_data:
tmppdf = BytesIO(pdf_data)
merger.append(PdfReader(tmppdf))
Expand Down

0 comments on commit f9d6960

Please sign in to comment.