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.

Fri Sep 27, 2024 5:56 am

Dear Support teams,

I tried to convert html to pdf using your product but it is not working in case of that html size is over than about 1.2M.
Spire.PDF for Java version is 10.9.0. and working on OS Win11, RAM 16GB, JDK1.8 environment.

the test code is following.

Code: Select all
   try (
       FileInputStream fis = new FileInputStream(Paths.get("C:\\tools\\test1.html").toFile());) {
       String htmlString = IOUtils.toString(fis, "UTF-8");
       String outputFile = "C:\\tools\\test.pdf";
       HtmlConverter.setPluginPath("C:\\tools\\plugins-windows-x64\\plugins");
       HtmlConverter.convert(htmlString, outputFile, true, 1000000, new Size(700, 500), new PdfMargins(0),
               LoadHtmlType.Source_Code);
   } catch (IOException e) {
       e.printStackTrace();
   }


I attached 2 html files, test1.html can be converted to PDF file well, but pdf file is not generated for test2.html with no errors, exceptions.
Do you have any restrictions or options for using HtmlConverter?

thanks.

noishiki
 
Posts: 10
Joined: Fri Sep 27, 2024 2:31 am

Fri Sep 27, 2024 8:15 am

Hello,

Thanks for your inquiry. I have reproduced your problem using your code. At present, our dev team has researched new conversion methods to replace the use of QT plugins. I have validated your HTML document using the new method and the result is correct. Now, our test team is conducting further testing. Once the test passes, we will provide you with a new fix version and usage instructions. Thank you for your understanding.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Fri Sep 27, 2024 8:30 am

Thanks for your fast reply. So I'm waiting new methods will be provide.

Could you inform when it will be provided ?

noishiki
 
Posts: 10
Joined: Fri Sep 27, 2024 2:31 am

Fri Sep 27, 2024 8:55 am

Hello,

Thanks for your inquiry. At present, our test team has reported that there are still some issues with the new methods in Linux systems, and the dev team is working on resolving them. If you only need to verify on the Windows system, we can provide a temporary version for you to test first. We will notify you of the update when the official version is released. If you need a temporary version, I will send it to you via email. Please confirm if you need a temporary version.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Mon Sep 30, 2024 12:24 am

I understand your situation. I would like to test the product version , so you don't need to send the test version.
Thanks.

noishiki
 
Posts: 10
Joined: Fri Sep 27, 2024 2:31 am

Mon Sep 30, 2024 1:27 am

Hello,

Thank you for your understanding. I will notify you immediately after the new version update to download and test it. If you have any other questions, please feel free to write to me.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Fri Oct 04, 2024 1:02 am

Hi

Do you have any update for this topic ?
And I want to know the performance for new conversion methods.
Actually it takes about 20 seconds to convert 300 Kbytes html, I feel it is slow.
I am happy if it would be much faster than now.

thanks.

noishiki
 
Posts: 10
Joined: Fri Sep 27, 2024 2:31 am

Fri Oct 04, 2024 8:45 am

Hello,

Thanks for your following up.
We have completed preliminary testing on the new conversion method for converting HTML to PDF. To ensure the reliability of the product, we will conduct further testing. Once the official version is available, we will notify you as soon as possible. The question of conversion efficiency is related to the elements contained in the document itself. The more complex the document, the slower the conversion. You can provide us with some of your testing documents, and we can conduct testing based on the documents you provide and provide you with feedback on the conversion time.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Tue Oct 08, 2024 1:16 am

Hello,

Thank you for your reply. I understand the progress for it.
About conversion efficiency survey, please use the html files attached to the first inquiry which I posted here.

Thanks.

noishiki
 
Posts: 10
Joined: Fri Sep 27, 2024 2:31 am

Tue Oct 08, 2024 7:18 am

Hello,

Thanks for your feedback. Our new method also has a significant improvement in performance. I used the new method to convert the HTML document you provided, which took about 7 seconds. If you have any other questions, please feel free to write to me.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Fri Oct 18, 2024 1:12 am

Hello.

How is the progress ?
I would like to know if the updated products release will be released next week or later so that I can adjust my project schedule.

thanks.

noishiki
 
Posts: 10
Joined: Fri Sep 27, 2024 2:31 am

Fri Oct 18, 2024 7:27 am

Hello,

Thanks for your following up. At present, our product has been internally adjusted, and we are currently merging the code and submitting it for testing. Without any unforeseen circumstances, we plan to release it within this month.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Fri Oct 18, 2024 7:53 am

Thank you for your information.
I will adjust my plan refer to that. Please inform if your plans changed.

thanks.

noishiki
 
Posts: 10
Joined: Fri Sep 27, 2024 2:31 am

Fri Oct 18, 2024 8:48 am

Hello,

Thank you for your reply. I will notify you immediately once there is any relevant information. Thank you for your patience.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Wed Oct 30, 2024 5:24 am

HI,

I think new product will be provided in tomorrow.
Appling new version mothods, should I just replace plug-in liblary or change any other ?
I want information for installing and using for it.

thanks.

noishiki
 
Posts: 10
Joined: Fri Sep 27, 2024 2:31 am

Return to Spire.PDF