dealfonso / sapp

Simple and Agnostic PDF Document Parser in PHP - sign PDF docs using PHP
GNU Lesser General Public License v3.0
115 stars 30 forks source link

Feature: Signature appearance as pdf object or html #15

Closed kczereczon closed 2 years ago

kczereczon commented 2 years ago

Is possible to make the signature appearance just the pdf object instead of image or html?

dealfonso commented 2 years ago

hi, I cannot understand exactly what you mean, but if you refer to including the signature without any image, you have an example called pdfsign.php that includes a non-visible signature for a PDF file (it just signs the document and does not include any image). Please try it and tell me if it solves your problem.

kczereczon commented 2 years ago

No I mean an additional extension for the signature appearance. At this moment we are able to sign the pdf with an image. Few days ago I found out that one of the commercial solutions represent a signature appearance as a pdf object (that is draggable, and don't pixelize at zoom) it would be cool feature in this library

dealfonso commented 2 years ago

I have tried using a PDF document as a signature appearance, but it seems that in the end, it is not an embedded PDF document in the other PDF document; instead, it seems a snapshot of one of the pages of the document used as a signature appearance. This is the first thought, and I'll need to check it again. Could you please confirm that the resulting signature contains an embedded PDF document?