The following code may be useful for you:
var config = new PdfGenerateConfig();
config.PageOrientation= PageOrientation.Landscape;
config.PageSize = PageSize.A4;
PdfDocument pdf = PdfGenerator.GeneratePdf(documentHtmlContent, config);
pdf.Save(FILE_OUT_PATH);
Process.Start(FILE_OUT_PATH);
source
share