Skip to content
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

Fail on color initialization #1

Open
Speedo2k opened this issue Aug 14, 2020 · 0 comments
Open

Fail on color initialization #1

Speedo2k opened this issue Aug 14, 2020 · 0 comments

Comments

@Speedo2k
Copy link

Traceback (most recent call last):
File "C:/Users/marek/pypdf/pdf/pdf/naivetest.py", line 25, in
main()
File "C:/Users/marek/pypdf/pdf/pdf/naivetest.py", line 12, in main
for i, page in enumerate(doc.pages):
File "C:\Users\marek\pypdf\pdf\venv\lib\site-packages\naivepdf\pdfdocument.py", line 84, in pages
i.interpret()
File "C:\Users\marek\pypdf\pdf\venv\lib\site-packages\naivepdf\pdfpage.py", line 247, in interpret
getattr(self, operator)()
File "C:\Users\marek\pypdf\pdf\venv\lib\site-packages\naivepdf\pdfpage.py", line 352, in cs
self.graphics_states['non_stroking_color'] = self.initial_color(color_space)
File "C:\Users\marek\pypdf\pdf\venv\lib\site-packages\naivepdf\pdfpage.py", line 263, in initial_color
initial_color = [0.0] * color_space['value']
TypeError: can't multiply sequence by non-int of type 'NoneType'
color_space: {'name': b'Lab', 'value': None}

pdf: http://www.mqq.pl/DL.pdf

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

No branches or pull requests

1 participant