Now I have a problem with setting the height of the paper. I can only set the width value. When I set the height, the width of the paper became wider too.
How do I set the height?
my pdf image
According to the picture, I want to give the height of the paper. in the upper quadrant frame
my code :
let result = await this.cdnService.generateLabel({
template: '/template/xxxxx.html',
cached: false,
params: { xxxx, xxxx },
options: {
margin: {
top: 5,
left: 5,
bottom: 5,
right: 5,
},
width: 100,
printBackground: true,
},
});