Hi I am using the experimental PDF function. I have used a timer and the timer has the formula in the ontimerstart property. The whole thing was working correctly until now. The pdf get's generated but all of the controls are enlarged and are missing the rest of the controls towards the bottom of the page. Any ideas why this randomly start happening?
Formula in the timer ontimerstart property:
Set(
VarPDF,
PDF(
Container4,
{
ExpandContainers: true,
Orientation: PaperOrientation.Portrait
//Size: PaperSize.A4
}
)
);
Set(
varFileName,
Concatenate(Text(varRecord.ID),
".pdf")
);
create_mealschecklistpdf.Run(
{
file: {
name: varFileName,
contentBytes: VarPDF
}
}
);
Hi,
Even after I added a DPI it is still not working 😞
It used to work all this time. It is still working for my co worker with the same exact code as well. But mine seems to have broke.
Hi @NPatel12498 ,
You might want to try adding the DPI property to the PDF function and increase this to make the elements smaller on page. Remember this is an experimental feature so changes may occur that could break things!
Default is 96, maybe increase to 128 and see what happens
Also noticed the paper size is commented out, but unsure if this is intended or not 🙂
Content on Microsoft Learn
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional