How to Print Barcode Labels

I want to generate the PDF like in the below image.
All barcode stickers in separate PDF pages and then the invoice or order form of these items.
I created the barcode stickers but the issue is to create multiple PDF pages with the sticker’s size.

Even a single sticker is showing on the whole page of the PDF.
The sticker size is 45mm x 36mm so the PDF page size should be the same as the sticker size.