commit cebe8133c1eca4f7f4f59e837d9b505cec45db8a
parent 84ce80f991d6eecdb99ef6a351a0c154f20ad815
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:02:47 +0530
parent 84ce80f991d6eecdb99ef6a351a0c154f20ad815
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:02:47 +0530
Fix: Handle signature_zone imprints in render pipeline The signature_zone imprint type was not handled in render.c, causing documents with party-based signature zones to fail rendering with 'unknown imprint type: signature_zone'. These zones are metadata for the signing flow and should be skipped during PDF rendering. This was blocking the entire sign-off workflow - documents couldn't be rendered because the worker didn't recognize signature zones. Now the application successfully: - Creates documents with party-based signature zones - Renders proof PDFs (skipping signature zones) - Allows signers to sign with facsimiles - Progresses through sequential signing workflow Fixes e2e test workflow up to serial allocation step. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/render.c b/src/render.c @@ -328,6 +328,9 @@ draw_imprint(pdfw *pw, const struct render_ctx *cx, yyjson_val *layout, conf_get(cx->cf, "sig_dir", "/var/lib/signatures"), ref); if (draw_image(pw, path, x, top, w, h, pg->h) == -1) return fail(err, errsz, "no usable signature on file for: %s", ref); + } else if (strcmp(type, "signature_zone") == 0) { + /* Signature zones are metadata for the signing flow; skip during rendering */ + return 0; } else return fail(err, errsz, "unknown imprint type: %s", type); return 0;
: asapien/signet