Hello,
I have an html page in which I set out div width and height to an A4 page size. Such as follows:
<div style="width:21cm; height:29.7cm; border:1px solid red;">Some Content Here...</div>
Now I want to pass this HTML to the Blink HTMLToPDF Converter. When it coverts, I dont seem to get the correct page size produced in the resulting PDF. So question is how do I set the converter page size and/or view port to accurately draw the html page onto an A4 page size in PDF?
I have tried this:
blinkConverterSettings.PdfPageSize = PdfPageSize.A4;
and
blinkConverterSettings.ViewPortSize = new Syncfusion.Drawing.Size(595, 842);
What is the correct way of setting the output page dimensions to A4 paper size?
I am working with .NET Core, C#.
Thanks,
Amjad.