vizicsaba89 / pdf-signer

sign pdf documents
MIT License
37 stars 33 forks source link

Signature in a custom page of the pdf #11

Closed i-olivares closed 3 years ago

i-olivares commented 4 years ago

Hi,

would it be possible to place the signature in other page of the document rather than in the first or in the last pages? I'm trying to figure out how but I'm not able to do it.

Thanks!

vizicsaba89 commented 4 years ago

Hi @i-olivares !

Currently you can only place the signatures either in the first or the last page. We try to add this functionality as soon as possible, so please stay tuned till’ a next release :)

i-olivares commented 4 years ago

Thanks @vizicsaba89! :) And thanks and congratulations for the great work with the pdf-signer module, it has been really helpful!

pankucsi commented 4 years ago

Hello @i-olivares,

I had a little refactor in the module, but after we have reviewed it together with @vizicsaba89 , this feature will be available. We can't guarantee it will be fast, but we will try close it as soon as possible.

If you cant wait, you could checkout the throw_out_pdfmockkit branch, build it and feel free to use.

NoahCardoza commented 3 years ago

@pankucsi What exactly is the cause of the slowdown? Are we talking like a giant PDF or even a PDF with < 5 pages?

pankucsi commented 3 years ago

Unfortunately I don't have enough free time to catch myself up, and I thought if somebody want to use it he can checkout the another branch.

In the other hand I think giant / small pdf should not matters.

pankucsi commented 3 years ago

I had merged the branches and published a new version. Furthermore the unused and outdated branches have been deleted.

Now you are able to provide an annotationOnPages property in the signatureOptions.

If the annotationOnPages property is null or undefined only the first page will be signed. Otherwise you should provide a number array with the pages index where you need the apparances