Fix signature box placement calculation

Adjusted the calculation of the signature box's bottom boundary to subtract the height instead of adding it. This change ensures that the signature is placed correctly within the designated zone on the PDF.
This commit is contained in:
Julien Fastré 2024-09-03 14:33:45 +02:00
parent ef47e2c1fd
commit 41ba98ee91
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -42,7 +42,7 @@ def on_message(channel, method_frame, header_frame, body):
try:
box_place = (body_content['signatureZone']['x'], body_content['signatureZone']['y'],
body_content['signatureZone']['x'] + body_content['signatureZone']['width'],
body_content['signatureZone']['y'] + body_content['signatureZone']['height'])
body_content['signatureZone']['y'] - body_content['signatureZone']['height'])
LOGGER.debug("will try signature")
signed = orchestrator.sign(reason=body_content['reason'], signature_index=body_content['signatureZoneIndex'],
box_place=box_place, on_page=body_content['signatureZone']['PDFPage']['index'],