简体   繁体   English

ABCpdf 11.3 - 无法加载 html

[英]ABCpdf 11.3 - Unable to load the html

We are using ABCPdf 11.3 for one of our clients.我们正在为我们的一位客户使用 ABCPdf 11.3。 We create HTML dynamically and then store it somewhere on the server.我们动态创建 HTML,然后将其存储在服务器的某个位置。

We call the AddImageUrl(filePath, False, 300, False) and it takes more than 2 minutes even for a single page.我们调用 AddImageUrl(filePath, False, 300, False) ,即使是单个页面也需要 2 分钟以上。 (filePath is something like 'file://E:/pankaj/{generatedpdf}.html" (filePath 类似于 'file://E:/pankaj/{generatedpdf}.html"

I need to improve application performance.我需要提高应用程序的性能。 Since it's a single page, it shouldn't take more than 10 seconds.由于它是单页,因此不应超过 10 秒。 Even if I pass www.google.com as the parameter, it converts the google home to PDF in 10 seconds.即使我将www.google.com作为参数传递,它也会在 10 秒内将 google home 转换为 PDF。

Appreciate your help friends.感谢您的帮助朋友。

This is resolved.这解决了。

I could see there were a lot of external links and some javascript code on the page which was passed to ABCpdf to convert entirely.我可以看到页面上有很多外部链接和一些 javascript 代码,这些代码被传递给 ABCpdf 进行完全转换。

I removed the scripts and the external CSS/js libraries and all other external links and it worked.我删除了脚本和外部 CSS/js 库以及所有其他外部链接,它工作正常。 Now the page is rendered within 2 seconds.现在页面在 2 秒内呈现。

Thank you!谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM