Skip to content
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

PDF fields are being rotated 90 degrees when opening a generated PDF in Adobe Acrobat #96

Open
mehditaibi opened this issue Oct 27, 2020 · 0 comments

Comments

@mehditaibi
Copy link

We have tagged some PDFs and we use this library to swap the tags for some values.

The issue is that when we open the PDF which has been processed by this library all the fields are rotated 90 degrees on pages which are set to be in a landscape position.

We have contacted Adobe and they explained that the pdf filler is responsible for the rotation.

This is the explanation received from Adobe:

When the option "Show border hover color for fields" in Adobe Acrobat is checked, Acrobat takes the Appearance stream of the form field, extracts out the variable text part, adds the background color and then displays it.

The Appearance stream contains a rotation.

Example of a text field with the value "Canada":

/Tx BMC
q
0 1 -1 0 18.07 0 cm
BT
/Helv 8 Tf 0 g 1 0 0 1 0 15.07 Tm
2.00 -8.00 Td
(Canada) Tj
ET
Q
EMC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant