We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

HTML to PDF only creating 1 page

Thread ID:





123767 Apr 19,2016 08:01 AM Apr 29,2016 12:19 AM ASP.NET Web Forms 3
Tags: PDF
Asked On April 19, 2016 08:01 AM

I have a internal web page that is dynamically created with varying amounts of data so length can be quite long.

I can convert the page to a PDF and display it but it is only creating 1 page, whereas there should be 8 or 9. 

It seems to just render over the top of itself on the first page.

Any idea what I am doing wrong?

Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit)
Dim webKitSettings As New WebKitConverterSettings()

webKitSettings.WebKitPath = Request.PhysicalApplicationPath & "\bin\QtBinaries"
htmlConverter.ConverterSettings = webKitSettings

Dim myWriter As TextWriter = New StringWriter()
Dim htmlWriter As New HtmlTextWriter(myWriter)

Server.Execute("~/mypage.aspx", myWriter)
Dim document As PdfDocument = htmlConverter.Convert(myWriter.ToString(), Request.Url.AbsoluteUri)

document.DocumentInformation.CreationDate = DateTime.Now

Dim ms As New System.IO.MemoryStream()

Abirami Selvan [Syncfusion]
Replied On April 20, 2016 07:19 AM

Hi Jamie,
Thank you for contacting Syncfusion support.

We have already fixed this issue in our latest version . We suggest you to upgrade the Essential Studio to latest version( to get this issue fixed. Please let us know if you need any further assistance, 

Replied On April 28, 2016 09:29 AM

Yes for some reason I was referencing an old version, thanks for the point in the right direction. All working now :)

Abirami Selvan [Syncfusion]
Replied On April 29, 2016 12:19 AM

Hi Jamie,
Thank you for your update. Please let us know if you need any further assistance.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.