This example shows how to create a PDF file and save it into the ouput folder.
First, we create a PDF file. Then, we make a dialog appear on the web page where a user can specify the filename.
After the user entered the filename, we transfer it to the Server event.
The server code checks the entered filename so that the file is saved in the correct format. In essence, the file is saved with a correct extension, whether the .pdf extension was specified by the user or not.
After the name check, the file is saved to the output folder.
After the file is saved to the disk, it is opened in a new browser window.