TypeError: Cannot read property 'dict' of undefined
mpolitze opened this issue · comments
Hi!
for one of my slide decks I am getting the following error from decktape
Printing slide #4 ( 4/23) ...TypeError: Cannot read property 'dict' of undefined
at parseXObject (/decktape/decktape.js:393:28)
at /decktape/decktape.js:384:42
at Array.forEach (<anonymous>)
at parseResources (/decktape/decktape.js:384:25)
at parseXObject (/decktape/decktape.js:403:7)
at /decktape/decktape.js:384:42
at Array.forEach (<anonymous>)
at parseResources (/decktape/decktape.js:384:25)
at parseXObject (/decktape/decktape.js:403:7)
at /decktape/decktape.js:384:42
If it helps, the slide at question is available here: https://gitlab-nrw-workshop-2021-04.gitlab.io/workshop/slides.html#4
I am a bit lost, it would be nice to have a hint why it fails.
For some reasons, the PDF generated out of slide #4 contains a reference that cannot be resolved. so the following call returns an undefined result:
Line 392 in bb3c3a2
Interestingly, I've been able to produce a correct PDF by returning early and skipping the unresolved reference:
It would be interesting to understand what is special in slide #4 that leads to that undefined result.
It should be fixed in version 3.4.1. Feel free to re-open if needed.