I've discovered a very strange bug when generating a PDF using the PDF() function then saving that file to dataverse. If the file is loaded to dataverse with a .pdf file extension, most of the elements of the pdf are missing. Basically the entire first page is blank, additional pages seem to display but nothing on the first page, and if the document is only 1 page I just get a blank page.
Loading the file to dataverse with no extension, then downloading it and renaming it with a .pdf extension works just fine.
The generated PDF looks fine in the pdf viewer in the app.
Sample code that works:
Set(Document, PDF(Myscreen));
Set(filename, "MyDoc")
Patch(MyTable,MyRecord,{File:{FileName:filename,Value:Document}});
Sample code that yields blank document:
Set(Document, PDF(Myscreen));
Set(filename, "MyDoc.pdf")
Patch(MyTable,MyRecord,{File:{FileName:filename,Value:Document}});