For a document item, Chirun looks at the /Root/Names part of the PDF's trailer to find the location of each page.
When the draft option is given to the \documentclass command, pdflatex doesn't produce this list of names, so Chirun fails with an error 'PDFPageLookup' object has no attribute 'dests'.
To begin with, we should throw a better error message when we can't get the list of names. Maybe it should also just give up on splitting the PDF and only use the original file.
For a
document
item, Chirun looks at the/Root/Names
part of the PDF's trailer to find the location of each page.When the
draft
option is given to the\documentclass
command, pdflatex doesn't produce this list of names, so Chirun fails with an error'PDFPageLookup' object has no attribute 'dests'
.To begin with, we should throw a better error message when we can't get the list of names. Maybe it should also just give up on splitting the PDF and only use the original file.