Clicking Submit will convert the ArrayBuffer of the PDF file content into a base64 string and then use that in a data URL to download the file. In practice, you would replace this function with one that submits the base64 content to another process where it can be converted back to a binary PDF.

Submit