
Announcements
I have a gallery containing a single element, an HTMLText, that I want to use to generate a PDF file. To do this, I'm using the following code:
PDF(
Gallery, {
Orientation: PaperOrientation.Portrait,
Size: PaperSize.A4,
DPI: 96,
ExpandContainers: true
}
)
The problem I'm experiencing is that the gallery can have multiple rows and may extend beyond a single page, sometimes up to 30 pages. However, regardless of the number of pages, the generated PDF file only includes what I believe is the height of the gallery (in my case, 640), which fits within the screen height. If I increase the height of the gallery, for example to 2000, it displays more rows.
Ideally, I would like to keep the template size as an A4 page size, so each row would be on its own page. I tried changing the Template Size to PaperSize.A4, but that didn't work. While having one row per page would be great, the most important issue is to include all of the gallery rows in the PDF.
Any recommendations would be appreciated. Thank you in advance.