Skip to content

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

Open
erezarnon wants to merge 1 commit into
pmaupin:masterfrom
TrueSkills:master
Open

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

Conversation

@erezarnon

Copy link
Copy Markdown

No description provided.

@wrkhenddher

wrkhenddher commented Mar 19, 2018

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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