I need to help (how to save as pdf file )

i have some elements arranged inside vertical arrangement and i want to save it as pdf file ..ok?
i'm using this block but it's ok with old android version (i can find on my device the pdf file after clicking on button 2) but when i use it with new android version like android 11 nothing happens ( i can't find any pdf file saved on the device ) ... what are the missing block to be matched with all android versions ??
i'm using permission (read external storage)