On 17/09/14 21:47, Steffen Nurpmeso wrote: > In general it is a pity that it is impossible to generate a complete > document with TOC, index etc. in "safe" mode. But this is way > off-topic.
It may be off-topic, but FWIW, it is perfectly feasible to do all of the above entirely in safe mode, by adapting the technique employed by pdfroff to capture PDF outline and reference data. -- Regards, Keith.