Baking objects in Layout mode and switching views: two correlated bugs in Grasshopper...?

Hello Matteo_Falduto,
I want to try to make a GH deffinition to export selected layout tab as PDFs, using documents information as file name (Title, page number, date…). Do you have any hints ? I will share my progress but so far I can only print all layouts in one file with this https://discourse.mcneel.com/t/parametric-layouts-from-grasshopper/88030/7?u=s11
Any ideas ?