I've been working with html2ps to get some text only labels to print correctly on a Dymo 450 Labelwriter printer. According to this page you should be able to resize the page using CSS. Here's the CSS I tried (in an external file and also tried it inline):
@page {
size: 28mm 85mm landscape;
margin: 0mm;
}
But the output postscript continues to be letter size. I was also able to do scaling using html2ps' -s option, but the margins are still so great that no text prints (just a blank label comes out)
html2ps -s .3 -L <url>
What can I do to get margins to zero and an output of the correct page size?
Here's a sample of the input html:
<div>Code: <b>SNHN1</b> PO: <b>035718</b> ln: <b>1</b><br>Desc: <div>US15 4" SOLID BRASS NO. 1 (SNHN1)******* HOUSE NUMBER SATIN NICKEL "1"<br></div>Remarks: <b>## CUSTOMER NAME 01/13</b><br><div>Vendor: HARDWARE COMPANY ETC... Rcvd: date and time...</div></div>
Also it appears html2ps is not respecting inline:
page-break-after:always;
Thanks for your help. I should also mention that I'm printing using lp from an ubuntu print server.