PyPDFForm 2.2.0__py3-none-any.whl → 2.2.1__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 CHANGED
@@ -5,7 +5,7 @@ This package provides tools for filling PDF forms, drawing text and images,
5
5
  and manipulating PDF form elements programmatically.
6
6
  """
7
7
 
8
- __version__ = "2.2.0"
8
+ __version__ = "2.2.1"
9
9
 
10
10
  from .wrapper import FormWrapper, PdfWrapper
11
11
 
PyPDFForm/wrapper.py CHANGED
@@ -497,10 +497,7 @@ class PdfWrapper(FormWrapper):
497
497
  obj = _class(name=name, page_number=page_number, x=x, y=y, **kwargs)
498
498
  watermarks = obj.watermarks(self.read())
499
499
 
500
- if widget_type in ["radio", "signature", "image"]:
501
- self.stream = copy_watermark_widgets(self.read(), watermarks, [name])
502
- else:
503
- self.stream = merge_watermarks_with_pdf(self.read(), watermarks)
500
+ self.stream = copy_watermark_widgets(self.read(), watermarks, [name])
504
501
  if obj.non_acro_form_params:
505
502
  self.stream = handle_non_acro_form_params(
506
503
  self.stream, name, obj.non_acro_form_params
@@ -1,9 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyPDFForm
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: The Python library for PDF forms.
5
- Home-page: https://github.com/chinapandaman/PyPDFForm
6
5
  Author: Jinge Li
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/chinapandaman/PyPDFForm
8
+ Project-URL: Documentation, https://chinapandaman.github.io/PyPDFForm/
7
9
  Classifier: Development Status :: 5 - Production/Stable
8
10
  Classifier: Intended Audience :: Developers
9
11
  Classifier: Programming Language :: Python :: 3
@@ -14,7 +16,6 @@ Classifier: Programming Language :: Python :: 3.10
14
16
  Classifier: Programming Language :: Python :: 3.11
15
17
  Classifier: Programming Language :: Python :: 3.12
16
18
  Classifier: Programming Language :: Python :: 3.13
17
- Classifier: License :: OSI Approved :: MIT License
18
19
  Classifier: Operating System :: OS Independent
19
20
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
21
  Requires-Python: >=3.8
@@ -24,15 +25,17 @@ Requires-Dist: cryptography
24
25
  Requires-Dist: pillow
25
26
  Requires-Dist: pypdf
26
27
  Requires-Dist: reportlab
27
- Dynamic: author
28
- Dynamic: classifier
29
- Dynamic: description
30
- Dynamic: description-content-type
31
- Dynamic: home-page
28
+ Provides-Extra: dev
29
+ Requires-Dist: coverage; extra == "dev"
30
+ Requires-Dist: jsonschema; extra == "dev"
31
+ Requires-Dist: mkdocs; extra == "dev"
32
+ Requires-Dist: pudb; extra == "dev"
33
+ Requires-Dist: pylint; extra == "dev"
34
+ Requires-Dist: pyright; extra == "dev"
35
+ Requires-Dist: pytest; extra == "dev"
36
+ Requires-Dist: requests; extra == "dev"
37
+ Requires-Dist: ruff; extra == "dev"
32
38
  Dynamic: license-file
33
- Dynamic: requires-dist
34
- Dynamic: requires-python
35
- Dynamic: summary
36
39
 
37
40
  <p align="center"><img src="https://github.com/chinapandaman/PyPDFForm/raw/master/docs/img/logo.png"></p>
38
41
  <p align="center">
@@ -1,4 +1,4 @@
1
- PyPDFForm/__init__.py,sha256=hjPRwJtZTA62FbtoLBD6-wBOL6xyoIiyGuvyOpDfz6o,328
1
+ PyPDFForm/__init__.py,sha256=8gn1V77Cv5yAuVbm3CaWVNgH6A0N_ykRLrhK13rpFBA,328
2
2
  PyPDFForm/adapter.py,sha256=_5fP5UR-NzjDDayJmBRO36DgbnbUzNbjZtHZtPvSM14,1909
3
3
  PyPDFForm/constants.py,sha256=r4lR-lQ8KjKRLMowjxIv6k3wBPOxvt9-JAMugZwQmZM,2285
4
4
  PyPDFForm/coordinate.py,sha256=AgVrBoUo6fLVTVdZrlVRf6tGwD-AX54ICMLfbvhYfRs,14879
@@ -9,7 +9,7 @@ PyPDFForm/patterns.py,sha256=iChwqR-aZUKhEdnbQ8OEwnES2-NaMhBUy4dUrnuDPpA,9243
9
9
  PyPDFForm/template.py,sha256=v1ZM52xHCzO8Xm7EXinbTepm2G7MU7StUgCFtuUdcbI,18899
10
10
  PyPDFForm/utils.py,sha256=ubqTaItrs6pEYcza-12bxLUiFYe_sl-0SdeowD_BSG0,8444
11
11
  PyPDFForm/watermark.py,sha256=9ydcqy8wNrea_1BvywyUsbcD4TzxQuEAdo0izOZKYyU,11101
12
- PyPDFForm/wrapper.py,sha256=xCYAfbJbMTSCE5TubrLJBLd4Oo9an_JyxcW6nhpNM5M,24779
12
+ PyPDFForm/wrapper.py,sha256=4owXTiSyvx2DSA2XGnssIjH-ygL2pznmRjpPOuWwaWw,24625
13
13
  PyPDFForm/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  PyPDFForm/middleware/base.py,sha256=d4z7M7pm80176cC4H85m3ZRWzAu_Fm1HkwQkmSSi-WE,2832
15
15
  PyPDFForm/middleware/checkbox.py,sha256=gRGhFySPoIpKBseoiOTS3WggoBBik12dXbZ-LJKzIwM,2611
@@ -27,8 +27,8 @@ PyPDFForm/widgets/image.py,sha256=6y8Ysmk49USr_qWOXD6KGL6cch516cUIlrxoj0pJy9Q,79
27
27
  PyPDFForm/widgets/radio.py,sha256=ipadJyHbgftDUvjGk15kapzgHPN3HjdF_iB_7amXR6o,2737
28
28
  PyPDFForm/widgets/signature.py,sha256=RII_fgjPRbM5_72ih4L6ohaWCBOyjgIoY6odkd15VY8,5107
29
29
  PyPDFForm/widgets/text.py,sha256=HP2cPEUAzK5QL3kDfMz7gQcC3svCpmYuyFItBjlrBpI,1233
30
- pypdfform-2.2.0.dist-info/licenses/LICENSE,sha256=43awmYkI6opyTpg19me731iO1WfXZwViqb67oWtCsFY,1065
31
- pypdfform-2.2.0.dist-info/METADATA,sha256=f1CwaWncIrJwjsQgex2h6kjztG5iEOTlDy73DqupCO8,5274
32
- pypdfform-2.2.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
33
- pypdfform-2.2.0.dist-info/top_level.txt,sha256=GQQKuWqPUjT9YZqwK95NlAQzxjwoQrsxQ8ureM8lWOY,10
34
- pypdfform-2.2.0.dist-info/RECORD,,
30
+ pypdfform-2.2.1.dist-info/licenses/LICENSE,sha256=43awmYkI6opyTpg19me731iO1WfXZwViqb67oWtCsFY,1065
31
+ pypdfform-2.2.1.dist-info/METADATA,sha256=mF5d-PAuqkCy4d1dfhhtN2LcRsGelcnr5Z4joN8nPp8,5522
32
+ pypdfform-2.2.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
33
+ pypdfform-2.2.1.dist-info/top_level.txt,sha256=GQQKuWqPUjT9YZqwK95NlAQzxjwoQrsxQ8ureM8lWOY,10
34
+ pypdfform-2.2.1.dist-info/RECORD,,