Thanks for your sharing. 👍
There is another method that works too. I'm using below formula to print the screen "scn_Printing".
Set(pdfblob,PDF(scn_Printing,{ExpandContainers:true}));
my printing screen are migrated with a gallery which may generated dynamic rows. The printed pdf cannot print all information in gallery by using below formula in "Screen/Design/Height".
Max(App.Height, App.MinScreenHeight);
Now, I fix it simply by changing the "Screen/Design/Height" to maximum number instead of above formula.😂