I am trying to convert HTML template to PDF using IronPDF's HtmlToPdf()
.
I have following settings for PdfPrintOptions
Dpi = 600,
EnableJavaScript = true,
PaperOrientation = PdfPrintOptions.PdfPaperOrientation.Landscape,
PaperSize = PdfPrintOptions.PdfPaperSize.A4,
MarginBottom = 10,
MarginRight = 10,
MarginTop = 10,
MarginLeft = 10
In the generated PDF file, Margin for Top and Bottom is applied. But a default margin is seen on Left and Right. It doesn't change after changing option values for MarginLeft and MarginRight.
When PdfPaperOrientation
is set as Portrait
, all the margins are applied as per the provided values.
Any help would be much appreciated.