@Michael E. Gernaey
Hi Michael, thanks for getting back to me!
I created an app in which others will fill out a fillable form and submit it upon pressing the Submit button. I originally wanted the Submit button to also Print the form to PDF using the Media > PDFViewer experimental and could not figure out how to combine the 2 functions to work as one, so I created a Print button which upon pressing will Print to PDF. The two buttons are on my Main Screen and within the Main Screen I inserted my Container 2 that contains the fillable form linked to my data source. I have my Print button OnSelect set to:
Set(
varPDFmultiple,
PDF(
Container2, // actual name of my outer container
{
Orientation: PaperOrientation.Portrait,
Size: PaperSize.A4,
Margin: "0px",
ExpandContainers: true,
DPI: 300
}
)
);
Office365Outlook.SendEmailV2(
"enter email address here",
"Surface Emissions Monitoring Record PDF", //PDF name
"Attached is the SEM Report.",
{
Attachments: Table({
Name: "SEM_Report.pdf",
ContentBytes: varPDFmultiple,
'@odata.type': ""
})
}
);
Navigate(PDFScreen_1, ScreenTransition.None)
and the Submit button OnSelect set to: SubmitForm(FinSEMfrm_1). I then created a second screen named PDFScreen_1 in which it contains my PdfViewer1 document and I set the Document to varPDFmultiple which displays how the PDF will look upon pressing (this was the image preview I attached). The goal is to have a multiple page PDF output with page breaks. The issue I see is when I inserted the PDF Viewer it had the document set to SamplePdf which the format looked great, but I changed it to varPDFmultiple (set in my formula in the Print button) in the PdfViewer1 of the PDFScreen_1 which caused the formatting to mess up and I cannot fix it. Please let me know if this makes sense. I appreciate your help!