fixed issues on edit

This commit is contained in:
azeeee05
2026-06-11 19:23:34 +05:30
parent a4131d828e
commit 948461da65
+1 -1
View File
@@ -247,7 +247,7 @@ def apply_edits_impl(document_id: str, request: EditsRequest):
pdfengine = engine.require()
doc = doc_info["doc_instance"]
req_dict = request.model_dump()
req_dict = request.model_dump(exclude_none=True)
for op in req_dict.get("operations", []):
if op.get("type") == "image_overlay":
img_data_str = op["data"].get("imageData", "")