-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stamp font and position is inverted for some PDFs. #312
Comments
Is the "bad" PDF rotated? If so, it's a known issue; see discussion and links in #265. There's an open PR purporting to fix the problem, but it needs a bit of work... |
@MatthiasValvekens probably this might be the issue. Will explore this. In my case visible signature working fine(visible_sig_settings=fields.VisibleSigSettings(rotate_with_page=True)). When I'm trying to put stamp alone issue is happening. |
Hi @MatthiasValvekens |
The There are obviously ways to fix this ad-hoc without making too many code changes, but they all require some knowledge about the PDF graphics model... :/ The approach proposed in #266 can be made to cover your use case, but not in the way it's implemented there. I'm currently very strapped for time, but I'll flag this as a feature request to be completed together with the fix for #265. |
We can fix the rotation issue of a PDF using the I am adding it here because it may be helpful to someone looking for a solution.
|
The stamp font and box position are vertically inverted from what is expected. This issue only occurs in PDFs that are converted from HTML. For other PDFs, the font and position are in the expected manner.
Code sample to reproduce the issue.
Expected behaviour is stamp affixed bottom of page.
Issue screenshot: (HTML converted pdf)(issue happening in wkhtmltopdf pdf, pdf created from chrome)
Tried python 3.11.4 macOS and Linux
Working as expected in other pdf:
@MatthiasValvekens Do you have any idea why this is happening?
The text was updated successfully, but these errors were encountered: