PyPDFForm 2.3.1__py3-none-any.whl → 2.3.2__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/wrapper.py +14 -7
- {pypdfform-2.3.1.dist-info → pypdfform-2.3.2.dist-info}/METADATA +1 -1
- {pypdfform-2.3.1.dist-info → pypdfform-2.3.2.dist-info}/RECORD +7 -7
- {pypdfform-2.3.1.dist-info → pypdfform-2.3.2.dist-info}/WHEEL +0 -0
- {pypdfform-2.3.1.dist-info → pypdfform-2.3.2.dist-info}/licenses/LICENSE +0 -0
- {pypdfform-2.3.1.dist-info → pypdfform-2.3.2.dist-info}/top_level.txt +0 -0
PyPDFForm/__init__.py
CHANGED
PyPDFForm/wrapper.py
CHANGED
|
@@ -249,7 +249,13 @@ class PdfWrapper(FormWrapper):
|
|
|
249
249
|
dict: Field names mapped to their sample values
|
|
250
250
|
"""
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
result = {}
|
|
253
|
+
for key, value in self.widgets.items():
|
|
254
|
+
if getattr(self, "use_full_widget_name") and key != value.full_name:
|
|
255
|
+
continue
|
|
256
|
+
result[key] = value.sample_value
|
|
257
|
+
|
|
258
|
+
return result
|
|
253
259
|
|
|
254
260
|
@property
|
|
255
261
|
def version(self) -> Union[str, None]:
|
|
@@ -706,12 +712,13 @@ class PdfWrapper(FormWrapper):
|
|
|
706
712
|
dict: A JSON Schema dictionary following Draft 7 format
|
|
707
713
|
"""
|
|
708
714
|
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
"
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
+
result = {}
|
|
716
|
+
for key, value in self.widgets.items():
|
|
717
|
+
if getattr(self, "use_full_widget_name") and key != value.full_name:
|
|
718
|
+
continue
|
|
719
|
+
result[key] = value.schema_definition
|
|
720
|
+
|
|
721
|
+
return {"type": "object", "properties": result}
|
|
715
722
|
|
|
716
723
|
@classmethod
|
|
717
724
|
def register_font(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
PyPDFForm/__init__.py,sha256
|
|
1
|
+
PyPDFForm/__init__.py,sha256=-8q8goejLmKZqbaQz1MzZVHcxV6d5qFgHpq0OPXHirw,328
|
|
2
2
|
PyPDFForm/adapter.py,sha256=_5fP5UR-NzjDDayJmBRO36DgbnbUzNbjZtHZtPvSM14,1909
|
|
3
3
|
PyPDFForm/constants.py,sha256=3ed0j11cWd9Uo4s-XvZwwJojPSz8aqdmZgaEishWjqE,2342
|
|
4
4
|
PyPDFForm/coordinate.py,sha256=gQI7z-GsdCO33Qny5kXLBs6Y2TW5KO_mJ2in64fvXcg,16412
|
|
@@ -9,7 +9,7 @@ PyPDFForm/patterns.py,sha256=VH7cgAFHLKEUIfE1yIlifIJ9mc0Eb2Kqo-krk34HGOY,9316
|
|
|
9
9
|
PyPDFForm/template.py,sha256=geZUB8a_otsHa5Q7dO0JH9md1WFodE7Dl_alBhqiU18,20128
|
|
10
10
|
PyPDFForm/utils.py,sha256=QxJSG96FHGch863UdBPT8DdTKN9gVzQzA2ezifTm7z4,8575
|
|
11
11
|
PyPDFForm/watermark.py,sha256=Zmx4orMrQRMoOWGYo4bvVhxptMXFnCM4RshagTp8LFY,12459
|
|
12
|
-
PyPDFForm/wrapper.py,sha256=
|
|
12
|
+
PyPDFForm/wrapper.py,sha256=UxgjdBWgoqALUkCmFUDVJKqIL3uud3ChG_gcieRdGkc,25933
|
|
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=8z1sOOgcvhQtLXZ5TeTd59oVtkNGTrgQtZRfuaOWR8w,5099
|
|
29
29
|
PyPDFForm/widgets/text.py,sha256=HP2cPEUAzK5QL3kDfMz7gQcC3svCpmYuyFItBjlrBpI,1233
|
|
30
|
-
pypdfform-2.3.
|
|
31
|
-
pypdfform-2.3.
|
|
32
|
-
pypdfform-2.3.
|
|
33
|
-
pypdfform-2.3.
|
|
34
|
-
pypdfform-2.3.
|
|
30
|
+
pypdfform-2.3.2.dist-info/licenses/LICENSE,sha256=43awmYkI6opyTpg19me731iO1WfXZwViqb67oWtCsFY,1065
|
|
31
|
+
pypdfform-2.3.2.dist-info/METADATA,sha256=IiQplBGHDSThpZI9ZqOokbyVxbd9zq1Za_JDksfSNzI,4738
|
|
32
|
+
pypdfform-2.3.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
33
|
+
pypdfform-2.3.2.dist-info/top_level.txt,sha256=GQQKuWqPUjT9YZqwK95NlAQzxjwoQrsxQ8ureM8lWOY,10
|
|
34
|
+
pypdfform-2.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|