Skip to content

Comments

Handle '/DecodeParms': ['null']#110

Open
erezarnon wants to merge 1 commit intopmaupin:masterfrom
TrueSkills:master
Open

Handle '/DecodeParms': ['null']#110
erezarnon wants to merge 1 commit intopmaupin:masterfrom
TrueSkills:master

Conversation

@erezarnon
Copy link

No description provided.

@wrkhenddher
Copy link
Collaborator

wrkhenddher commented Mar 19, 2018

Hello @erezarnon. Thanks for your contribution.

Would it be possible you add a simple test-case that verifies this change?

A PDF demonstrating the issue together with the citation of the PDF spec would be useful assuming the issue is not an implementation problem within pdfrw.

Thoughts @pmaupin ?

@wrkhenddher
Copy link
Collaborator

A search within the project found me this:

def _resolver(self, isinstance=isinstance, enumerate=enumerate,
listiter=list.__iter__, PdfIndirect=PdfIndirect,
resolved=_resolved, PdfNull=PdfObject('null')):
for index, value in enumerate(list.__iter__(self)):
if isinstance(value, PdfIndirect):
value = value.real_value()
if value is None:
value = PdfNull
self[index] = value
self._resolve = resolved

Perhaps this is related?

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

Successfully merging this pull request may close these issues.

2 participants