From 9189ae7c790602035a5d43b5cc1f37aa3a2867d2 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 23 Jun 2024 17:14:26 +0100 Subject: Removed pypdfium2 which doesn't build on FreeBSD Libraries used: - PdPDF2 (to get basic PDF length) - https://pypi.org/project/PyPDF2/ - pdf2image (to extract images from each page) - https://github.com/Belval/pdf2image Reduction of quality of screenshotted image is in place. Reduced pdf screenshot quality considerably --- requirements/base.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'requirements') diff --git a/requirements/base.txt b/requirements/base.txt index fdf7dd1..51b046e 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -9,8 +9,8 @@ django-celery-beat==2.6.0 # https://github.com/celery/django-celery-beat flower==2.0.1 # https://github.com/mher/flower # migrated stuff from pyblackbird -pypdf==4.2.0 -pypdfium2==4.29.0 +pdf2image==1.17.0 +pypdf2==3.0.1 python-magic==0.4.27 python-dotenv==1.0.1 boto3==1.34.89 -- cgit v1.2.3