-
Notifications
You must be signed in to change notification settings - Fork 599
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
Remaining issue with form flattening #1047
Comments
The page has a page rotation value of 270. My guess would be that the issue is related to that. |
I commented the following line. And it works.
So probably the following might be correct. This really needs testing...
|
Indeed, it seems to be the 270° rotation. In
but I think it should be
That error sneaked in while discussing and improving #992. But please test before integrating. Ah, I see you spotted the problem, too. But I think that the x correction also should be there for 180° rotations, simply try it on paper... |
Yes you were right - I tested it with 0, 90, 180, 270 and 360° and it works with your suggested solution. Thanks for sparing with me... |
Recently I added some code to fix form flattening problems with certain PDF documents (#992). It improved a lot of things however our QA found a bug. I added red rectangles to show the problem. Without the rectangle it was difficult to spot:
Original with form fields:
Flattened document:
The content of the form fields are minimally shifted to the top. I checked the code but couldn't spot it on a first glance. @mkl-public Maybe you have an idea? The document is landscape - maybe this is the cause?
Example-SmallShift.pdf
The text was updated successfully, but these errors were encountered: