Help printing with IronPDF in VB.net
Budget: $10 – $30 USD
Hello, i need help with IronPDF.
It's great for generating PDF files in A4 and other preset formats, but this time I'm trying to print on a thermal printer.
So I would like to achieve a PDF of about 80mm wide. The problem is that the height is variable. Since each impression is different.
I can show you example of PDF that i am trying to achieve.
Thanks.
PS: I leave you a bit of code that I have tried without success.
Dim Renderer As New IronPdf.HtmlToPdf()
Renderer.PrintOptions.PaperSize = IronPdf.PdfPrintOptions.PdfPaperSize.Custom
Renderer.PrintOptions.SetCustomPaperSizeinMilimeters(800, ?)
Renderer.PrintOptions.FitToPaperWidth = True
It's great for generating PDF files in A4 and other preset formats, but this time I'm trying to print on a thermal printer.
So I would like to achieve a PDF of about 80mm wide. The problem is that the height is variable. Since each impression is different.
I can show you example of PDF that i am trying to achieve.
Thanks.
PS: I leave you a bit of code that I have tried without success.
Dim Renderer As New IronPdf.HtmlToPdf()
Renderer.PrintOptions.PaperSize = IronPdf.PdfPrintOptions.PdfPaperSize.Custom
Renderer.PrintOptions.SetCustomPaperSizeinMilimeters(800, ?)
Renderer.PrintOptions.FitToPaperWidth = True