settings.MediaType = MediaType.Print; |
Hi @Gowthamraj Kumar
I am using this setting and it work perfectly fine for the header with smaller height but It fails as the height of the header increase it Stop printing the header from the next page how I fix this issue
Hi Shivam,
Thank you for getting back to us.
We have checked the reported issue on our end. Upon further analysis, Our HTML converter uses the Blink rendering engine, which in turn utilizes the Chromium executable in headless mode for converting HTML to PDF. This conversion process preserves the PDF document layout as it appears in Chromium-based web browsers (such as the Chrome print preview). We recommend checking your input HTML in the Chrome print preview to ensure that the layout is rendered correctly before conversion. Please refer to the screenshot below for reference
Additionally, we created a sample input HTML file with a long table header and used the MediaType property in BlinkConverterSettings to ensure the table header is repeated on all pages in the HTML to PDF conversion. Unfortunately, the reported issue was not reproduced, and the conversion worked as expected. The table header was preserved across all pages in the output document.
Please find the sample and it’s corresponding output document attached for your reference
We kindly request that you try the sample on your end and let us know the results. If you continue to face issues, please share the modified sample, complete code snippet, input HTML document, Syncfusion package name and version, and the .NET version you are using. This information will help us analyze the issue more effectively and provide a prompt solution.
Regards,
Arumugam M