In the example, saving the PDF works correctly when only the first two levels of the tree are expanded. However, if the entire tree is loaded from the beginning, the PDF download only works when the first two levels are expanded. Once a third-level node is expanded, clicking the download button has no effect — it stops working entirely.
In the example, saving the PDF works correctly when only the first two levels of the tree are expanded. However, if the entire tree is loaded from the beginning, the PDF download only works when the first two levels are expanded. Once a third-level node is expanded, clicking the download button has no effect — it stops working entirely.