BUG: Fix field's appearance problem#434
Closed
liuzhuoling2011 wants to merge 6 commits into
Closed
Conversation
Contributor
|
A fix for the appearance was started a while ago (#412) , just never got incorporated into the code base. I don't think it is significantly than the fix given here. I am confused why the /NeedAppearances is updated in the PdfFileReader class in this solution. |
MartinThoma
reviewed
Apr 16, 2022
Member
|
It seems as if this PR breaks something |
MartinThoma
reviewed
Jun 12, 2022
MartinThoma
reviewed
Jul 24, 2022
Comment on lines
+1203
to
+1207
| if "/AcroForm" in self.trailer["/Root"]: | ||
| self.trailer["/Root"]["/AcroForm"].update({ | ||
| NameObject("/NeedAppearances"): BooleanObject(True) | ||
| }) | ||
|
|
Member
There was a problem hiding this comment.
Suggested change
| if "/AcroForm" in self.trailer["/Root"]: | |
| self.trailer["/Root"]["/AcroForm"].update({ | |
| NameObject("/NeedAppearances"): BooleanObject(True) | |
| }) |
We now have writer.set_need_appearances_writer() which is used in writer.update_page_form_field_values
Member
|
Note for myself:
|
MartinThoma
added a commit
that referenced
this pull request
Jul 24, 2022
Closes #434 Co-authored-by: liuzhuoling <[email protected]>
MartinThoma
added a commit
that referenced
this pull request
Jul 24, 2022
Closes #434 Co-authored-by: liuzhuoling <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have tried many python pdf-related tools, none of them work correctly for me.
Finally I found this, it meet all the needs but have some small problem such as:
to make better user experience, I made some change~
now, use this library is more easier, just need a little customer code!