Generate pdf/word document containing several pages and qr codes in specific page size

Hi

I’m trying to generate labels that needs to be printed.

I have a datatable with the data that needs to be printed on each label.

My approach so far has been to create a txt document to which I am replacing the placeholders with the dynamic data, but I’m facing some issues, I’m using the market component “convert HTML to pdf”, but the out doesn’t match the pagesize i’m looking for, the labels are 100 mm x 57 mm, so I assume the output to PDF should be the same.

there are som other packages to download, but no activities appear, so I assume that it’s code that needs to be invoked, any has any ideas?

This should be the outcome - I have made this in html
image

please give advises to how to achieve this.

How can that be achieved?