Add a funtion for guessing the signature count of a PDF file
Compare changes
Gitlab 18.0 has been released. Since there are breaking changes the update will be postponed to July 2025. For a list of breaking changes see https://about.gitlab.com/blog/2025/04/18/a-guide-to-the-breaking-changes-in-gitlab-18-0/. Please prepare yourself and your projects for this update.
On May, 23th between 18:00 and 22:00 gitlab.tugraz.at may not be available (Reason: maintenance work / gitlab updates).
We require the signature count in the future to force users to do a manual positioning when there are already signatures in the file since we can't add a new page for them.
This uses a simple regex, matching parts of the signatures we use (PAdES).
In case the result is wrong, worst case the user has to do extra work by positioning or the auto positioning will put it at the top of the first page, which might not be ideal, but the document is still signed either way.