Hi,
I'm using the PDF function in my Canvas app to make a print of a container component.
I need to print to turn out as full screen in my PDF. But with setting the Margin to 0, I still get unwanted white space on the left and bottom.
Does anyone have a tip for how to get it full screen?
Set(
gblPdfBlob,
PDF(
cntDesignTemplate,
{
Orientation: Landscape,
Size: PaperSize.A4,
Margin: "0pt"
}
)
);
Component cntDesignTemplate in Canvas app (used in PDF function):
PDF (has white space on the right and bottom):
Solved! Go to Solution.
Hello @JurSap82
Try to increase your container size.
for an A4 size Landscape, you should ensure that your Container has at least this dimension:
1366 x 965. This will ensure that it will fill the whole table.
Here is the actual PDF output, hitting all corners right.
✔️ | Just in case you think my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
🔗 | 🕸 bistek.space 🐦 @cha_bistek 📺 @BisTekSpace |
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @cha_bistek @BisTekSpace |
Hello @JurSap82
Try to increase your container size.
for an A4 size Landscape, you should ensure that your Container has at least this dimension:
1366 x 965. This will ensure that it will fill the whole table.
Here is the actual PDF output, hitting all corners right.
✔️ | Just in case you think my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
🔗 | 🕸 bistek.space 🐦 @cha_bistek 📺 @BisTekSpace |
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @cha_bistek @BisTekSpace |
Thank you @cha_cha!
That was very helpful to understand what the problem was with the extra margin. Making the component height bigger than the tablet screen size height was an option, but not exactly what I was looking for. But eventually it turns out that changing the size in the PDF function to A5 works for me too. Now, I did not have to change any of the layout of the component or screen.
Set(
gblPdfBlob,
PDF(
cntDesignTemplate,
{
Orientation: Landscape,
Size: PaperSize.A5,
Margin: "0pt"
}
)
);
Hello @JurSap82
I'm glad you got it sorted out.
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |
bistek.space @cha_bistek @BisTekSpace |
User | Count |
---|---|
253 | |
113 | |
92 | |
48 | |
38 |