PDF Outline with child templates
-
I would like to be able to specify a data-pdf-outline-parent id in a child template that exists in the main template. I get an error saying that the outline parent passed to the data-pdf-outline-parent was not found. I have created a simple example of this error in the sandbox. If you delete the child template reference, the PDF generates with the Root>Child 1 outline. Is there a way to overcome this? Having child templates that comprise the structure of the PDF seems like it would be a common use case. Here is the playground:
[https://playground.jsreport.net/w/anon/mJ3h5ajs]
Thanks!
-
Thank you for the idea.
It is now fixed with this commit
https://github.com/jsreport/jsreport-pdf-utils/commit/3b19df01e243dd6e27138a57bc58e3ea9a89d3aaIt will be part of the next jsreport hotfix. Or you can get it using
npm i jsreport/jsreport-pdf-utils --save
-
Fantastic! Thanks for the rapid response...I will give it a try.