Skip to content

Updating field in XFA PDF #2809

Answered by jheasleycrea
jheasleycrea asked this question in Q&A
Discussion options

You must be logged in to vote

Figured out the problem. The issue from the fact that the /Filter here was an ArrayObject of ["/FlateDecode"]. in EncodedStreamObject.set_data the line to check Decode status if self.get(SA.FILTER, "") == FT.FLATE_DECODE: returns false.
I was able to work around this by setting /Filter to _base.NameObject("/FlateDecode")
From there the rest of my code ran and the field was updated as expected.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@jheasleycrea
Comment options

@pubpub-zz
Comment options

@jheasleycrea
Comment options

@jheasleycrea
Comment options

Comment options

You must be logged in to vote
6 replies
@ljbergmann
Comment options

@pubpub-zz
Comment options

@ljbergmann
Comment options

@pubpub-zz
Comment options

@ljbergmann
Comment options

Answer selected by jheasleycrea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants