You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are generating a PDF file with multiple QR codes.
The pages are very small, to produce small centered QR codes and a QR code is fitting a whole page (with a margin of 1 in each direction).
In this setup, there always is a blank page generated as first page.
I'd try some combinations of page dimensions, margins and row heights and figured out, that the page height has to be row height + top margin + 21, to prevent generating a first blank page.
In my following example, it is row height 20, top margin 1 + 21. That means the page height has to be 42, but I would like to have it on 22, to get a small page with a centered QR code.
The necessary extra height of 21 is always 21, it does not matter if row/page height is 20/22 or 250/252.
Sure, here are two pictures.
The first one with the problem (row height 22) and the second one with bigger row height, that there is no empty page at the beginning.
Description
We are generating a PDF file with multiple QR codes.
The pages are very small, to produce small centered QR codes and a QR code is fitting a whole page (with a margin of 1 in each direction).
In this setup, there always is a blank page generated as first page.
I'd try some combinations of page dimensions, margins and row heights and figured out, that the page height has to be row height + top margin + 21, to prevent generating a first blank page.
In my following example, it is row height 20, top margin 1 + 21. That means the page height has to be 42, but I would like to have it on 22, to get a small page with a centered QR code.
The necessary extra height of 21 is always 21, it does not matter if row/page height is 20/22 or 250/252.
Code Example
The text was updated successfully, but these errors were encountered: