PyPDFForm 1.4.21__py3-none-any.whl → 1.4.22__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of PyPDFForm might be problematic. Click here for more details.
- PyPDFForm/__init__.py +1 -1
- PyPDFForm/constants.py +2 -1
- PyPDFForm/wrapper.py +2 -1
- {PyPDFForm-1.4.21.dist-info → PyPDFForm-1.4.22.dist-info}/METADATA +2 -3
- {PyPDFForm-1.4.21.dist-info → PyPDFForm-1.4.22.dist-info}/RECORD +8 -8
- {PyPDFForm-1.4.21.dist-info → PyPDFForm-1.4.22.dist-info}/LICENSE +0 -0
- {PyPDFForm-1.4.21.dist-info → PyPDFForm-1.4.22.dist-info}/WHEEL +0 -0
- {PyPDFForm-1.4.21.dist-info → PyPDFForm-1.4.22.dist-info}/top_level.txt +0 -0
PyPDFForm/__init__.py
CHANGED
PyPDFForm/constants.py
CHANGED
|
@@ -5,6 +5,7 @@ from typing import Union
|
|
|
5
5
|
|
|
6
6
|
from .middleware.checkbox import Checkbox
|
|
7
7
|
from .middleware.dropdown import Dropdown
|
|
8
|
+
from .middleware.image import Image
|
|
8
9
|
from .middleware.radio import Radio
|
|
9
10
|
from .middleware.signature import Signature
|
|
10
11
|
from .middleware.text import Text
|
|
@@ -22,7 +23,7 @@ VERSION_IDENTIFIERS = [
|
|
|
22
23
|
]
|
|
23
24
|
VERSION_IDENTIFIER_PREFIX = b"%PDF-"
|
|
24
25
|
|
|
25
|
-
WIDGET_TYPES = Union[Text, Checkbox, Radio, Dropdown, Signature]
|
|
26
|
+
WIDGET_TYPES = Union[Text, Checkbox, Radio, Dropdown, Signature, Image]
|
|
26
27
|
|
|
27
28
|
DEPRECATION_NOTICE = "{} will be deprecated soon. Use {} instead."
|
|
28
29
|
|
PyPDFForm/wrapper.py
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
from __future__ import annotations
|
|
5
5
|
|
|
6
|
+
from functools import cached_property
|
|
6
7
|
from typing import BinaryIO, Dict, List, Tuple, Union
|
|
7
8
|
from warnings import warn
|
|
8
9
|
|
|
@@ -117,7 +118,7 @@ class PdfWrapper(FormWrapper):
|
|
|
117
118
|
|
|
118
119
|
return None
|
|
119
120
|
|
|
120
|
-
@
|
|
121
|
+
@cached_property
|
|
121
122
|
def pages(self) -> List[PdfWrapper]:
|
|
122
123
|
"""Returns a list of pdf wrapper objects where each is a page of the PDF form."""
|
|
123
124
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyPDFForm
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.22
|
|
4
4
|
Summary: The Python library for PDF forms.
|
|
5
5
|
Home-page: https://github.com/chinapandaman/PyPDFForm
|
|
6
6
|
Author: Jinge Li
|
|
@@ -8,7 +8,6 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
8
8
|
Classifier: Intended Audience :: Developers
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.8
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -17,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
16
|
Classifier: License :: OSI Approved :: MIT License
|
|
18
17
|
Classifier: Operating System :: OS Independent
|
|
19
18
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
-
Requires-Python: >=3.
|
|
19
|
+
Requires-Python: >=3.8
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
21
|
License-File: LICENSE
|
|
23
22
|
Requires-Dist: cryptography
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
PyPDFForm/__init__.py,sha256=
|
|
1
|
+
PyPDFForm/__init__.py,sha256=uOJ2Qv-iFKP_cD4QsBVtIo-QweqFJRxBjZleu2TXyY8,149
|
|
2
2
|
PyPDFForm/adapter.py,sha256=OgAIwcmukpBqHFBLymd3I7wA7wIdipRqgURZA2Y0Hgo,885
|
|
3
|
-
PyPDFForm/constants.py,sha256=
|
|
3
|
+
PyPDFForm/constants.py,sha256=EPEU_CN5MwyRZHFn-BIyaFNpd2yiJXS92v7ValxYts8,1563
|
|
4
4
|
PyPDFForm/coordinate.py,sha256=V_ZZQ1pXtVPAyfMJCX7fKoEimK7XwX6bU3VQ0nKOhQA,7314
|
|
5
5
|
PyPDFForm/filler.py,sha256=KY7qAKm1JSXCiFInfQBWUw8K8lCK2p7ZQgBb8fP3bdo,6484
|
|
6
6
|
PyPDFForm/font.py,sha256=y9vNvoaBfgkd5vz9EDp04ul8KDM2jY7J61-VWFng6GY,4155
|
|
@@ -9,7 +9,7 @@ PyPDFForm/patterns.py,sha256=fg8jarqa3fMuNwwOAUKxBkTUdBLi1eTrPzRAPuTB2MI,4193
|
|
|
9
9
|
PyPDFForm/template.py,sha256=fuoqiYD_4xQXrBgw8XC677EMxJzHaXb9NcVVYbf0r-0,11782
|
|
10
10
|
PyPDFForm/utils.py,sha256=_gskLLNmwhfGF16gfMP00twVY6iYADYYAYWHMvKCDrg,4140
|
|
11
11
|
PyPDFForm/watermark.py,sha256=clYdRqCuWEE25IL-BUHnSo4HgLkHPSOl7FUJLhbAfGg,4755
|
|
12
|
-
PyPDFForm/wrapper.py,sha256=
|
|
12
|
+
PyPDFForm/wrapper.py,sha256=tJNN4ODQAoZx7niOje4OYkj6j0_NA6jdqM-7LIt89ag,10506
|
|
13
13
|
PyPDFForm/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
PyPDFForm/middleware/base.py,sha256=TmoO8XpjFa5NerAumrAGm_kUt2eFP3DyyF-Vx0uXloM,724
|
|
15
15
|
PyPDFForm/middleware/checkbox.py,sha256=Z92awlKjceMd_ryb9Fhrtyd4fLkU84Ii6fSum60rHcA,1305
|
|
@@ -23,8 +23,8 @@ PyPDFForm/widgets/base.py,sha256=Stq-oQt-cfwQ6nilQ4NqpO5udFSKDNb1mAwryrWggZA,207
|
|
|
23
23
|
PyPDFForm/widgets/checkbox.py,sha256=MGB6NGI-XMBz4j2erykgYOCd1pswvthuQ6UFowQOd4o,503
|
|
24
24
|
PyPDFForm/widgets/dropdown.py,sha256=NYVbtBhmaKNyBh3uTWf4lRz8F2vBfvrruFjdoPWGTb8,998
|
|
25
25
|
PyPDFForm/widgets/text.py,sha256=1-Ww1pK7IMdqBTM0AtQzSSXji4hBgj09l0ZMbFEoZAQ,629
|
|
26
|
-
PyPDFForm-1.4.
|
|
27
|
-
PyPDFForm-1.4.
|
|
28
|
-
PyPDFForm-1.4.
|
|
29
|
-
PyPDFForm-1.4.
|
|
30
|
-
PyPDFForm-1.4.
|
|
26
|
+
PyPDFForm-1.4.22.dist-info/LICENSE,sha256=43awmYkI6opyTpg19me731iO1WfXZwViqb67oWtCsFY,1065
|
|
27
|
+
PyPDFForm-1.4.22.dist-info/METADATA,sha256=9b_MNQfYKBxqwuFSaBhmCH0wsIyqJ4WlhCemAPTqQzU,5367
|
|
28
|
+
PyPDFForm-1.4.22.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
29
|
+
PyPDFForm-1.4.22.dist-info/top_level.txt,sha256=GQQKuWqPUjT9YZqwK95NlAQzxjwoQrsxQ8ureM8lWOY,10
|
|
30
|
+
PyPDFForm-1.4.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|