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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HTML to PDF only creating 1 page

Thread ID:

Created:

Updated:

Platform:

Replies:

123767 Apr 19,2016 12:01 PM UTC Apr 29,2016 04:19 AM UTC ASP.NET Web Forms 3
loading
Tags: PDF
jaykay
Asked On April 19, 2016 12:01 PM UTC

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()
document.Save(ms)

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

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(14.1.0.41) to get this issue fixed. Please let us know if you need any further assistance, 
Regards,
Abirami.


jaykay
Replied On April 28, 2016 01:29 PM UTC

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 04:19 AM UTC

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


CONFIRMATION

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.

Warning Icon 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.Close Icon

;