I am trying to set a custom page size with OpenHTMLtoPDF
. I am trying to convert an HTML source to a 58mm x 110mm thermal paper print job, however, I got stuck on this.
I have tried setting the page size directly like so:
var pdf = Pdf.From(html).OfSize(58,110);//Invalid arguments
and
var pdf = Pdf.From(html).OfSize(new PaperSize(58,110));//Invalid arguments