PyPDFForm 4.7.1__tar.gz → 4.7.2__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.
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PKG-INFO +1 -1
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/__init__.py +1 -1
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/wrapper.py +9 -1
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm.egg-info/PKG-INFO +1 -1
- {pypdfform-4.7.1 → pypdfform-4.7.2}/LICENSE +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/adapter.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/annotations/__init__.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/annotations/base.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/annotations/link.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/annotations/stamp.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/annotations/text.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/annotations/text_markup.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/assets/__init__.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/assets/bedrock.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/assets/blank.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/constants.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/coordinate.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/deprecation.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/egress.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/filler.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/font.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/hooks.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/image.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/middleware/__init__.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/middleware/base.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/middleware/checkbox.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/middleware/dropdown.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/middleware/image.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/middleware/radio.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/middleware/signature.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/middleware/text.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/patterns.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/raw/__init__.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/raw/circle.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/raw/ellipse.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/raw/image.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/raw/line.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/raw/rect.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/raw/text.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/template.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/types.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/utils.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/watermark.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/widgets/__init__.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/widgets/base.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/widgets/checkbox.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/widgets/dropdown.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/widgets/image.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/widgets/radio.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/widgets/signature.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm/widgets/text.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm.egg-info/SOURCES.txt +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm.egg-info/dependency_links.txt +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm.egg-info/requires.txt +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/PyPDFForm.egg-info/top_level.txt +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/README.md +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/pyproject.toml +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/setup.cfg +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_bulk_create_fields.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_create_widget.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_draw_elements.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_dropdown.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_extract_middleware_attributes.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_fill_max_length_text_field.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_font_widths.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_functional.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_generate_appearance_streams.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_js.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_need_appearances.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_paragraph.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_signature.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_use_full_widget_name.py +0 -0
- {pypdfform-4.7.1 → pypdfform-4.7.2}/tests/test_widget_attr_trigger.py +0 -0
|
@@ -44,7 +44,8 @@ from .utils import (generate_unique_suffix, get_page_streams, merge_pdfs,
|
|
|
44
44
|
remove_all_widgets)
|
|
45
45
|
from .watermark import (copy_watermark_widgets, create_watermarks_and_draw,
|
|
46
46
|
merge_watermarks_with_pdf)
|
|
47
|
-
from .widgets import CheckBoxField, ImageField, RadioGroup,
|
|
47
|
+
from .widgets import (CheckBoxField, DropdownField, ImageField, RadioGroup,
|
|
48
|
+
SignatureField)
|
|
48
49
|
|
|
49
50
|
if TYPE_CHECKING:
|
|
50
51
|
from .annotations import AnnotationTypes
|
|
@@ -578,6 +579,7 @@ class PdfWrapper:
|
|
|
578
579
|
needs_separate_creation = [
|
|
579
580
|
CheckBoxField,
|
|
580
581
|
RadioGroup,
|
|
582
|
+
DropdownField,
|
|
581
583
|
SignatureField,
|
|
582
584
|
ImageField,
|
|
583
585
|
]
|
|
@@ -597,6 +599,12 @@ class PdfWrapper:
|
|
|
597
599
|
CheckBoxField, []
|
|
598
600
|
) + needs_separate_creation_dict.pop(RadioGroup, [])
|
|
599
601
|
|
|
602
|
+
if (
|
|
603
|
+
DropdownField in needs_separate_creation_dict
|
|
604
|
+
and len(needs_separate_creation_dict[DropdownField]) > 1
|
|
605
|
+
):
|
|
606
|
+
general_creation += needs_separate_creation_dict.pop(DropdownField, [])
|
|
607
|
+
|
|
600
608
|
for each in list(needs_separate_creation_dict.values()) + [general_creation]:
|
|
601
609
|
if each:
|
|
602
610
|
self._bulk_create_fields(each)
|
|
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
|
|
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
|