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.

Thu Nov 16, 2023 9:34 am

Hello,

I cannot provide any file to illustrate as it has private data.
But the file "IndexOutOfboundArray.html" provided by myarra1228 in the inital post run the same error as my html.

Here is my code:

PdfDocument pdf = new PdfDocument();
if (setting == null)
setting = new PdfPageSettings();

//Specify the plugin path
HtmlConverter.PluginPath = WebConfigHelper.QtPluginPath;
using (var stream = new MemoryStream())
{
//Convert URL to PDF
HtmlConverter.Convert(html, stream, true, 600, pdf.PageSettings.Size, new PdfMargins(25), Spire.Pdf.HtmlConverter.LoadHtmlType.SourceCode);
pdf.LoadFromStream(stream);
}

I'm on Windows 11 Business, region "United States"
Application: Class Library .Net Framework 4.8

Thank you

jonathan.joaquim
 
Posts: 3
Joined: Tue Aug 30, 2022 8:25 am

Fri Nov 17, 2023 1:44 am

Hello,

Thank you for your feedback.
Based on the information you provided, I simulated an HTML file for preliminary testing and still did not reproduce your issue. Different input files may have the same error message when executing the same function, but the cause of the program error may be different. Please desensitize your HTML file (as long as it can reproduce your issue) and send it to us via email (support@e-iceblue.com), which will facilitate our developers' investigation and fix of this issue. We promise to keep your document confidential and we will not use it for any other purpose. Thank you in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF