PyPDFForm 3.5.0__tar.gz → 3.5.1__tar.gz
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-3.5.0 → pypdfform-3.5.1}/PKG-INFO +1 -1
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/__init__.py +1 -1
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/template.py +7 -4
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm.egg-info/PKG-INFO +1 -1
- {pypdfform-3.5.0 → pypdfform-3.5.1}/LICENSE +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/adapter.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/constants.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/coordinate.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/filler.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/font.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/hooks.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/image.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/middleware/__init__.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/middleware/base.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/middleware/checkbox.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/middleware/dropdown.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/middleware/image.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/middleware/radio.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/middleware/signature.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/middleware/text.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/patterns.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/utils.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/watermark.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/__init__.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/base.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/bedrock.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/checkbox.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/dropdown.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/image.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/radio.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/signature.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/widgets/text.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm/wrapper.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm.egg-info/SOURCES.txt +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm.egg-info/dependency_links.txt +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm.egg-info/requires.txt +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/PyPDFForm.egg-info/top_level.txt +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/README.md +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/pyproject.toml +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/setup.cfg +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_adobe_mode.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_create_widget.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_dropdown.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_extract_values.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_fill_max_length_text_field.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_fill_method.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_font_widths.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_functional.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_paragraph.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_signature.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_use_full_widget_name.py +0 -0
- {pypdfform-3.5.0 → pypdfform-3.5.1}/tests/test_widget_attr_trigger.py +0 -0
|
@@ -20,7 +20,7 @@ The library supports various PDF form features, including:
|
|
|
20
20
|
PyPDFForm aims to simplify PDF form manipulation, making it accessible to developers of all skill levels.
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
-
__version__ = "3.5.
|
|
23
|
+
__version__ = "3.5.1"
|
|
24
24
|
|
|
25
25
|
from .middleware.text import Text # exposing for setting global font attrs
|
|
26
26
|
from .widgets import Fields
|
|
@@ -150,20 +150,23 @@ def get_widget_key(widget: dict, use_full_widget_name: bool) -> str:
|
|
|
150
150
|
Returns:
|
|
151
151
|
str: The extracted widget key.
|
|
152
152
|
"""
|
|
153
|
-
key = extract_widget_property(widget, WIDGET_KEY_PATTERNS, None, str)
|
|
154
153
|
if not use_full_widget_name:
|
|
155
|
-
return
|
|
154
|
+
return extract_widget_property(widget, WIDGET_KEY_PATTERNS, None, str)
|
|
156
155
|
|
|
156
|
+
key = widget.get(T)
|
|
157
157
|
if (
|
|
158
158
|
Parent in widget
|
|
159
159
|
and T in widget[Parent].get_object()
|
|
160
160
|
and widget[Parent].get_object()[T] != key # sejda case
|
|
161
161
|
):
|
|
162
|
-
key
|
|
162
|
+
if key is None:
|
|
163
|
+
return get_widget_key(widget[Parent].get_object(), use_full_widget_name)
|
|
164
|
+
|
|
165
|
+
return (
|
|
163
166
|
f"{get_widget_key(widget[Parent].get_object(), use_full_widget_name)}.{key}"
|
|
164
167
|
)
|
|
165
168
|
|
|
166
|
-
return key
|
|
169
|
+
return key or ""
|
|
167
170
|
|
|
168
171
|
|
|
169
172
|
def construct_widget(widget: dict, key: str) -> Union[WIDGET_TYPES, None]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|