Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Aug 14, 2019 10:01 pm

Hello,

I have a requirement to convert an HTML page (with iFrames) into a PDF. This works fine with Spire.PDF, except that the iframe needs around 5 more seconds to load it's content (Power BI component)

We are using the code on this page:

/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-Customize-HTML-to-PDF-Conversion-by-Yourself.html

Is there a way to add a few seconds delay to the time when the HTML is converted into PDF?

Andrew

services@nvinteractive.com
 
Posts: 4
Joined: Mon Jun 18, 2018 12:50 am

Thu Aug 15, 2019 10:28 am

Hi,

Thanks for your inquiry. This Amber from E-iceblue support team.
Please refer to the following code to set the load time while converting html to pdf.

Code: Select all
            //set the load time while converting html to pdf
            htmlLayoutFormat.LoadHtmlTimeout = 5 * 1000;
            htmlLayoutFormat.IsWaiting = true;


If the code couldn’t solve your issue, please offer us your input Html file and output Pdf file for further investigation.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Tue Oct 29, 2019 10:10 am

Hi,

Greetings from E-iceblue.
Have you tried the code I offered you last time? Does it solve your issue?
Could you please give us some feedback at your convenience?

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Return to Spire.PDF