summaryrefslogtreecommitdiff
blob: 8e4a30327ee58a242ecdb343d1f5b5fae9c08b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff --git a/staplelib/commands.py b/staplelib/commands.py
index caf75f9..e67f419 100644
--- a/staplelib/commands.py
+++ b/staplelib/commands.py
@@ -4,7 +4,7 @@ import math
 import os
 
 try:
-    from PyPDF2 import PdfWriter, PdfReader
+    from pypdf import PdfWriter, PdfReader
 except:
     from pyPdf import PdfWriter, PdfReader
 
diff --git a/staplelib/iohelper.py b/staplelib/iohelper.py
index 8df365c..5474898 100644
--- a/staplelib/iohelper.py
+++ b/staplelib/iohelper.py
@@ -7,7 +7,7 @@ import re
 import sys
 
 try:
-    from PyPDF2 import PdfWriter, PdfReader
+    from pypdf import PdfWriter, PdfReader
 except ImportError:
     from pyPdf import PdfWriter, PdfReader
 
diff --git a/staplelib/tests.py b/staplelib/tests.py
index 86db178..423406d 100755
--- a/staplelib/tests.py
+++ b/staplelib/tests.py
@@ -5,7 +5,7 @@ import shutil
 import tempfile
 import unittest
 
-from PyPDF2 import PdfReader
+from pypdf import PdfReader
 
 from staplelib import main, CommandError
 
diff --git a/pyproject.toml b/pyproject.toml
index d34823e..765db3d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -15,7 +15,7 @@ packages = [
 
 [tool.poetry.dependencies]
 python = "^3.4"
-PyPDF2 = ">=1.26"
+pypdf = ">=3.1.0"
 
 [tool.poetry.dev-dependencies]
 pytest = "*"