HtmlToPdfConverter - Only convert the first page

Hello supports,

I am trying to convert a page that contains SFGrid using HtmlToPdfConverter.
However, it only shows a single page and there are some missing data. 
Do you have any idea why it does not generate multiple pages?


I attached a few files to help to understand the issue.

"HTMLToPDFConverter_PreviewPDF.png"

  The screenshot I took in Preview Page. It shows 1 of 1 page and missing data.

"HTMLToPDFConvert.pdf"
  The pdf file generated when the Preview page opened

"HTMLToPDFConverter_Page_1.png" and "HTMLToPDFConverter_Page_2.png"
  The page of Url opened by browsers. It shows there are more data.

"HTMLToPDFConverter_CreatedAsyncMethod.png"
  The code snippet that try to generate PDF. 


Let me know if you need more information.

Thank you.  




Attachment: HTMLToPDFConvert_f5d80c47.zip

1 Reply

AM Arumugam Muppidathi Syncfusion Team October 23, 2024 01:21 PM UTC

Hi Tristan,


Thank you for reaching out to us.

We have checked your issue on our end. Upon further analysis,  We have created sample application to perform HTML to PDF conversion with large HTML document as input.  The conversion is working fine on our end and the output document contains multiple pages based on the input HTML content.  We kindly request you to share the complete sample with input HTML document, package name and version, .NET version with us to replicate the same issue on our end.  This information will be more helpful for us to analyze and provide you with a prompt solution.

Meanwhile, please adjust the viewportSize property value in the BlinkConverterSettings based on the input HTML content to render properly in the output PDF document.  Please refer our documentation

Converting HTML to PDF Viewport | Syncfusion

 

Alternatively, use the Scale property value in the BlinkConverterSettings to resize the HTML content preserved in the PDF document based on the input HTML content size.  This ensures that the output PDF document preserves all the HTML content in it. Please refer the documentation below to use Scale property value

Converting HTML to PDF Scale | Syncfusion


Regards,
Arumugam M


Loader.
Up arrow icon