Closed marcelopedras-ufvjm closed 2 years ago
I can confirm the error and I'm looking at what may cause it.
Edit: Thanks for the concise bug report containing everything to quickly reproduce the problem! :+1:
I have found the problem (index out of bounds due the selected index being the last one in the array but the algorithm expecting it not to be) and will find a fix for it.
I have a fix for this problem and will incorporate it into the next release.
Thank you Thomas!
Added an appropriate test case and implemented the fix - will be in the next release.
hexapdf version: 0.23.0
How to add an image to the signature? When I try with the code below, it gives an index error on line 250 of signatures.rb: