I apologize for the delay.
There were some issues I had to fix, but with the next version of jsreport, you should be able to get the outlines cross-templates working in the script better.
So this should work in the next update
https://playground.jsreport.net/w/anon/7ysL9rwu
It seems that at this moment you can also call postprocess twice as workaround
res.content = await jsreport.pdfUtils.postprocess(res.content, {})
res.content = await jsreport.pdfUtils.postprocess(res.content, {
outlines: [{
id: 'a1',
title: 'link to another template'
}]
})
If you want to test the current jsreport master, you can do git clone on https://github.com/jsreport/jsreport
and yarn install && yarn start.
We plan to release this week likely.