-
-
Notifications
You must be signed in to change notification settings - Fork 688
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
Unable to flatten PDF if widget doesn't have P reference #722
Comments
I've created a draft pull request with a possible solution. The approach was to find the widget reference and then find the page that has that widget reference. Ideally, I would have preferred to update However, when testing the example document, I am getting a different error, possibly unrelated, something about |
Looks good to me, hope @Hopding can take a look at this. Thank you! |
Is there any way I can Pass P reference for flattening ? |
Dug into the error @btecu ran into on his branch and found the following:
The cause of the error seems to be twofold:
|
@Hopding thanks for the detailed explanation. The pull request should be ready for review now. |
When running
form.flatten()
on some PDFs, like from this this example, I get this error:Here is an example of PDF that will produce this error and where form isn't on 1st page. (Originally posted here)
The text was updated successfully, but these errors were encountered: