Skip to content

Commit

Permalink
Merge pull request #1473 from sbrunner/pypdf
Browse files Browse the repository at this point in the history
Use pypdf instead of PyPDF2
  • Loading branch information
sbrunner authored Dec 31, 2024
2 parents d505496 + 1d4c899 commit bbbaf1d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
31 changes: 15 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ deskew = { version = "1.5.1", optional = true }
"ruamel.yaml" = "0.18.6"
argcomplete = "3.5.2"
Pillow = "11.0.0"
PyPDF2 = { version = "3.0.1", optional = true }
pypdf = { version = "5.1.0", optional = true }
pyzbar = { version = "0.1.9", optional = true }
reportlab = { version = "4.2.5", optional = true }
weasyprint = { version = "63.1", optional = true }
Expand All @@ -80,7 +80,7 @@ process = [
"scikit-image",
"opencv-contrib-python-headless",
"deskew",
"PyPDF2",
"pypdf",
"pyzbar",
"reportlab",
"weasyprint",
Expand Down Expand Up @@ -115,7 +115,6 @@ types-requests = "2.32.0.20241016"
nbconvert = "7.16.4"
ipykernel = "6.29.5"


[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning", "poetry-plugin-tweak-dependencies-version", "poetry-plugin-drop-python-upper-constraint"]
build-backend = "poetry.core.masonry.api"
Expand Down
2 changes: 1 addition & 1 deletion scan_to_paperless/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import pikepdf
import zxingcpp
from PIL import Image
from PyPDF2 import PdfReader, PdfWriter
from pypdf import PdfReader, PdfWriter
from pyzbar import pyzbar
from reportlab.lib.colors import Color
from reportlab.pdfgen import canvas
Expand Down

0 comments on commit bbbaf1d

Please sign in to comment.