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.

Tue Jun 09, 2026 8:11 am

Hi Spire Support Team,

We are using Spire.PDF.NETCore 7.12.1 for converting PDF files to HTML in our ASP.NET application.

We are currently facing issues where the generated HTML does not preserve the original PDF styles and layout correctly.

We are using the following code for conversion:

PdfDocument pdf = new PdfDocument();

pdf.LoadFromFile(inputFile);

pdf.ConvertOptions.SetPdfToHtmlOptions(true, true);

pdf.SaveToFile(outputFile, Spire.Pdf.FileFormat.HTML);

string html = await File.ReadAllTextAsync(outputFile);

We have attached a sample PDF and generated HTML output for your reference.

Please let us know the best approach to achieve accurate PDF-to-HTML rendering.

ceipalAdmin
 
Posts: 83
Joined: Mon Apr 22, 2019 6:31 am

Tue Jun 09, 2026 9:13 am

Hi,

Thank you for your feedback.

I couldn't find the generated HTML file in your attachment. I have attached the HTML file generated on my end. Could you please check and confirm if the one you generated matches mine?

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Tue Jun 09, 2026 9:41 am

Hi Amy,

Thank you for your response and for sharing the HTML file generated on your end.

I reviewed the generated HTML and compared it with the original PDF. Unfortunately, the formatting issues we reported are still present in the HTML output.

Some specific examples are:

Page 3 – Checkbox Rendering Issue
Several checkboxes are duplicated in the generated HTML.
In the original PDF, each checkbox appears only once, but the HTML output displays overlapping or repeated checkboxes, affecting the layout and readability.
Last Page – Layout Formatting Issue
The content on the last page is not rendered in the correct position.
Text alignment, spacing, and overall page structure differ significantly from the original PDF.
As a result, the generated HTML does not accurately preserve the PDF's visual appearance.
General Styling Preservation
The HTML output does not fully maintain the original PDF layout and formatting.
Some elements appear misaligned, and the page structure differs from the source document.

Could you please review the attached the generated HTML compare against the original PDF, especially:

Page 3 (duplicated checkboxes)
Last page (incorrect content positioning and formatting)

ceipalAdmin
 
Posts: 83
Joined: Mon Apr 22, 2019 6:31 am

Wed Jun 10, 2026 2:50 am

Hello,

Thank you for the detailed report.

I have confirmed the rendering and layout issues you described and logged them into our tracking system as SPIREPDF-8092.
I will keep you posted once we have any updates or a solution.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Wed Jun 10, 2026 7:34 am

Hi Amy,

Thank you for confirming the issue and logging it as SPIREPDF-8092.

This issue is currently impacting our production environment and has become business-critical. We are already seeing client pushback due to the rendering and layout problems, and it is affecting ongoing deliverables.

Could you please provide an estimated timeline (ETA) for investigation, a fix, or a workaround? Having an approximate schedule will help us communicate expectations to our clients and plan accordingly.

Thank you for your support.

ceipalAdmin
 
Posts: 83
Joined: Mon Apr 22, 2019 6:31 am

Wed Jun 10, 2026 9:46 am

Hello,

Thank you for your prompt response.

I completely understand the urgency of this issue. I have escalated your request to our development team, and they are currently investigating it with the highest priority. They will evaluate the situation and provide an estimated timeline for a fix as soon as possible.

I will keep you updated on any progress and share the ETA with you once it is available.

Thank you for your patience and understanding.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Thu Jun 11, 2026 6:07 am

Hello,

We are pleased to inform you that our development team has just completed the fix for SPIREPDF-8092. We will arrange for testing as soon as possible and notify you once the new version is released.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Thu Jun 11, 2026 7:36 am

Dear Amy,

Thank you for the update.

Could you please share release date for the version that includes the SPIREPDF-8092 fix? We would appreciate any timeline information you can provide.

Thank you for your support.

ceipalAdmin
 
Posts: 83
Joined: Mon Apr 22, 2019 6:31 am

Thu Jun 11, 2026 8:49 am

Hello,

Thank you for your inquiry. Based on our current schedule, the version that includes the SPIREPDF-8092 fix is expected to be released as early as the end of this month or early next month.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF