I have a custom module which should create a pdf file each time a user clicks a button. Ideally the PDF would be created in
MyVendor_MyModule::pdfFiles/mypfd123.pdf but it can be created anywhere else if it can't be done inside my module folder.
after creating that pdf, I would need to get its url in order to open a new tab showing it.
I already know how to create the file, I just don't know how to tell magento that I want to place it in my module folder. Also I don't know how to get its absolute URL.