I have a gallery Named "Gallery1" which contains multiple Images.
I need to Generate a PDF from this Gallery and send the PDF as attachment in outlook but i have two issues:
- On my Gallery i have More than 4 Images but on my Generated PDF i have only 4 images on this PDF. The other Images are blank pages.
- The second issue i have is that the images on the Generated PDF are not in A4 format.
Please find here below the Formula which generates the PDF from my Gallery1 and send the PDF to email:
Set(myPDFDEP; PDF(Gallery1; { Orientation: PaperOrientation.Portrait;
Size: PaperSize.A4;
DPI: 1;
ExpandContainers: true }));;Set(depvisible;"true");;Office365Outlook.SendEmailV2("my@email";"TEST";" This is a test";{Attachments:Table({Name:"test.pdf";ContentBytes:PDF(Gallery1)})})