pdfdancer-client-python 0.2.11__py3-none-any.whl → 0.2.12__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 pdfdancer-client-python might be problematic. Click here for more details.
- pdfdancer/pdfdancer_v1.py +2 -2
- pdfdancer/types.py +2 -2
- {pdfdancer_client_python-0.2.11.dist-info → pdfdancer_client_python-0.2.12.dist-info}/METADATA +1 -1
- {pdfdancer_client_python-0.2.11.dist-info → pdfdancer_client_python-0.2.12.dist-info}/RECORD +6 -6
- {pdfdancer_client_python-0.2.11.dist-info → pdfdancer_client_python-0.2.12.dist-info}/WHEEL +0 -0
- {pdfdancer_client_python-0.2.11.dist-info → pdfdancer_client_python-0.2.12.dist-info}/top_level.txt +0 -0
pdfdancer/pdfdancer_v1.py
CHANGED
|
@@ -172,7 +172,7 @@ class PDFDancer:
|
|
|
172
172
|
return PDFDancer(resolved_token, pdf_data, resolved_base_url, timeout)
|
|
173
173
|
|
|
174
174
|
@classmethod
|
|
175
|
-
def _resolve_base_url(cls, base_url: str
|
|
175
|
+
def _resolve_base_url(cls, base_url: Optional[str]) -> Optional[str]:
|
|
176
176
|
env_base_url = os.getenv("PDFDANCER_BASE_URL")
|
|
177
177
|
resolved_base_url = base_url or (env_base_url.strip() if env_base_url and env_base_url.strip() else None)
|
|
178
178
|
if resolved_base_url is None:
|
|
@@ -180,7 +180,7 @@ class PDFDancer:
|
|
|
180
180
|
return resolved_base_url
|
|
181
181
|
|
|
182
182
|
@classmethod
|
|
183
|
-
def _resolve_token(cls, token: str
|
|
183
|
+
def _resolve_token(cls, token: Optional[str]) -> Optional[str]:
|
|
184
184
|
resolved_token = token.strip() if token and token.strip() else None
|
|
185
185
|
if resolved_token is None:
|
|
186
186
|
env_token = os.getenv("PDFDANCER_TOKEN")
|
pdfdancer/types.py
CHANGED
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import statistics
|
|
4
4
|
from dataclasses import dataclass
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Optional, List
|
|
6
6
|
|
|
7
7
|
from . import ObjectType, Position, ObjectRef, Point, Paragraph, Font, Color, FormFieldRef, TextObjectRef
|
|
8
8
|
|
|
@@ -93,7 +93,7 @@ class FormObject(PDFObjectBase):
|
|
|
93
93
|
self.position == other.position)
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
def _process_text_lines(text: str) ->
|
|
96
|
+
def _process_text_lines(text: str) -> List[str]:
|
|
97
97
|
"""
|
|
98
98
|
Process text into lines for the paragraph.
|
|
99
99
|
This is a simplified version - the full implementation would handle
|
{pdfdancer_client_python-0.2.11.dist-info → pdfdancer_client_python-0.2.12.dist-info}/RECORD
RENAMED
|
@@ -3,9 +3,9 @@ pdfdancer/exceptions.py,sha256=Y5zwNVZprsv2hvKX304cXWobJt11nrEhCzLklu2wiO8,1567
|
|
|
3
3
|
pdfdancer/image_builder.py,sha256=Omxc2LcieJ1MbvWBXR5_sfia--eAucTUe0KWgr22HYo,842
|
|
4
4
|
pdfdancer/models.py,sha256=ZoB5ZP1jaZsubqzhMr9W9nsIUirVUty_FkRiPZWq8vY,18276
|
|
5
5
|
pdfdancer/paragraph_builder.py,sha256=mjV36-XOqcYATfIjSOy7_SBO0EKXjsAtMqYL8IaowGU,9218
|
|
6
|
-
pdfdancer/pdfdancer_v1.py,sha256=
|
|
7
|
-
pdfdancer/types.py,sha256=
|
|
8
|
-
pdfdancer_client_python-0.2.
|
|
9
|
-
pdfdancer_client_python-0.2.
|
|
10
|
-
pdfdancer_client_python-0.2.
|
|
11
|
-
pdfdancer_client_python-0.2.
|
|
6
|
+
pdfdancer/pdfdancer_v1.py,sha256=XgcyKHPOBMI5vNM86ZRhRvJFA3wB7DTcWwDt6tHQxpI,39851
|
|
7
|
+
pdfdancer/types.py,sha256=SOmYP49XPVy6DZ4JXSJrfy0Aww-Tv7QjZCDnOB8VTT4,11860
|
|
8
|
+
pdfdancer_client_python-0.2.12.dist-info/METADATA,sha256=XHEG0LuL-bi7MQyYVUX2RWrq6mutyVlLcYSlqiUzMAg,6770
|
|
9
|
+
pdfdancer_client_python-0.2.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
pdfdancer_client_python-0.2.12.dist-info/top_level.txt,sha256=ICwSVRpcCKrdBF9QlaX9Y0e_N3Nk1p7QVxadGOnbxeY,10
|
|
11
|
+
pdfdancer_client_python-0.2.12.dist-info/RECORD,,
|
|
File without changes
|
{pdfdancer_client_python-0.2.11.dist-info → pdfdancer_client_python-0.2.12.dist-info}/top_level.txt
RENAMED
|
File without changes
|