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

This project is very good,But I have some questions #2

Closed lemsn closed 2 years ago

lemsn commented 3 years ago

This is a great project. Thank you for your contribution But I found this problem when I used it: The signature is successful, and I can see the picture of my signature in the browser. But when I opened the PDF with Adobe Acrobat, I found only the signature, not the image.

What should I do?

Thanks.

dealfonso commented 3 years ago

Hi,

the latest version had a bug when retrieving pagesize. I have just corrected it. Please test it and tell us how is it doing.

lemsn commented 3 years ago

Thank you. Problems Persist: The signature is successful, and I can see the picture of my signature in the browser. But when I opened the PDF with Adobe Acrobat, not the image.

lemsn commented 3 years ago

Now there is another problem: When I opened it in the browser, I could see the image, but it had been rotated 90 degrees to the left

dealfonso commented 3 years ago

Sorry but I cannot reproduce the error... could you please provide an example?

lemsn commented 3 years ago

ok, I have understood the problem

  1. Some documents have problems with invisible signatures. (eg: When I used the TCPDI signature and then use SAPP signature, I had a problem with the image not being visible).

  2. When I opened it in the browser, I could see the image, but it had been rotated 90 degrees to the left When I opened it in the browser, I could see the image, but it had been rotated 90 degrees to the left

图片

图片

图片

dealfonso commented 3 years ago

Does your original signature certify de document? or allows further modifications?

Could you please send an example of a not signed document, the document signed once and the document signed twice?

lemsn commented 3 years ago

sorry . I have another question: How can I put the signature image in a custom location, just like I did with TCPDI, and the image does not distort? thank you very much.

dealfonso commented 3 years ago

Have you tested the example pdfsigni.php?. I think that it does what you are asking for.

lemsn commented 3 years ago

Have you tested the example pdfsigni.php?. I think that it does what you are asking for.

I'm not using a command line test,

图片

lemsn commented 3 years ago

Does your original signature certify de document? or allows further modifications?

Could you please send an example of a not signed document, the document signed once and the document signed twice?

The picture one is an example of a not signed document, It was signed twice.

图片

dealfonso commented 3 years ago

Sorry, but I mean the pdf files... otherwise I cannot reproduce the error.

lemsn commented 3 years ago

ok. What is your email address? that I can send to you by email

dealfonso commented 3 years ago

for the sake of the open source, I'd prefer if you put the files in a public repository (e.g. here, you can drag and drop the files).

dealfonso commented 3 years ago

ok. What is your email address? that I can send to you by email

have you managed to solve the problem? otherwise, could you please attach a PDF with an error?