Temporarily work around pypdf bug py-pdf/pypdf#1640

This commit is contained in:
Raphael Michel
2023-02-17 16:37:11 +01:00
parent 3c0bd0629b
commit 093eaace43
2 changed files with 3 additions and 2 deletions

View File

@@ -51,8 +51,8 @@ from django.db.models import Exists, OuterRef, Q, Subquery
from django.db.models.functions import Cast, Coalesce
from django.utils.timezone import make_aware
from django.utils.translation import gettext as _, gettext_lazy, pgettext_lazy
from pypdf import PdfMerger, PdfReader, PdfWriter, Transformation
from pypdf.generic import RectangleObject
from PyPDF2 import PdfMerger, PdfReader, PdfWriter, Transformation
from PyPDF2.generic import RectangleObject
from reportlab.lib import pagesizes
from reportlab.lib.units import mm
from reportlab.pdfgen import canvas

View File

@@ -212,6 +212,7 @@ setup(
'pycountry',
'pycparser==2.21',
'pycryptodome==3.17.*',
'PyPDF2==2.12.*', # until https://github.com/py-pdf/pypdf/issues/1640 is fixed
'pypdf==3.4.*',
'python-bidi==0.4.*', # Support for Arabic in reportlab
'python-dateutil==2.8.*',