Hello everyone! I am trying to figure out how to m...
# advancedpdf
s
Hello everyone! I am trying to figure out how to make some specific labels for our products and am curious if anyone is aware of a way to resize the label template. We use a 5 inch by 4.5 inch sticker currently and hand write the relevant information on them, but it would be amazing if we could instead print them!
c
If you have access to the label freemarker, then you can specify the size of the body. Suiteanswers should have an article on it if you search.
s
Excellent, thank you!
n
<body padding="0.2in 0.2in 0.2in 0.2in" size="Letter-LANDSCAPE" width="3.5in" height="1.0in"> <#if record.item?has_content> <!-- start items --><#list record.item as item> <div page-break-after="always"> <table style="width: 100%;">
We use this to print on zebra labels 3.5 x 1
s
Awesome, your suggestions worked well! I am now struggling with trying to figure out how to get a background image onto the item label. Ideally I would like to resize the table itself to fit the blank space where we normally handwrite our information, but I’m struggling to get the image to show up at all. I can get it to display in the body, but anytime I try to fiddle with it using background-image it doesn’t show up. I’ve been trying to figure out/learn Freemarker to get it set up, and I’m just trying to figure out what I’m doing wrong.
n
here is an example I have. If I recall, we had to put everything in the footer because the background image was being cut off with a table or something. <body padding="0.5in 0.5in 0.5in 0.5in" size="Letter" background-image="omittedNetsuiteURL" background-image-position="center" background-image-width="7in" background-image-height="8in" footer="footer" footer-height="44mm">
s
Oh, that makes sense!!