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:
@@ -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'],
|
||||
|
Reference in New Issue
Block a user