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 Oct 30, 2024 10:06 am

Hello,

Thank you for your patience.
Glad to inform that we just released Spire.Pdf for Java 10.10.7 hotfix which fixes the bug of SPIREPDF-7087, welcome to download it from the following link and test it.

Our website link: https://www.e-iceblue.com/Download/pdf-for-java.html

You can refer to the following article to use a new method to convert HTML document to PDF document.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

Thu Oct 31, 2024 12:40 am

Hi,

thank you a lot ! I will try it.

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

Thu Oct 31, 2024 2:21 am

Hi,

I saw sample program described in https://www.e-iceblue.com/news/Spire.PD ... .10.7.html
Could you provide sample code in case of converting form a HTML string to PDF ?

And when using Chrome plugin , shoud I need to get Chrome plugin files and store them in local enviroment like qt plugin ?

Thanks

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

Thu Oct 31, 2024 7:15 am

Hello,

Thanks for your inquiry.
Sorry, the current new method just supports converting a HTML file directly, for your situation, you can first convert your HTML string into an HTML file. Anyway, regarding converting Html string requirement, we will add it as an overload feature, it was logged on the ticket SPIREPDF-7165, once it is available, we will let you know asap.

In addition, when using the new method, it is necessary to ensure that there is the Chrome plugin on the running environment and have the access permissions. I have uploaded a simple example project for your reference. If you have any further questions, please feel free to provide feedback.

Sincerely,
Amin
E-iceblue support team
User avatar

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

Thu Nov 07, 2024 5:35 am

Hello.
I'm a colleague of noishiki's.
Since noishiki is not here, I would like to ask an additional question regarding this matter.
When using the sample code websocket, an error is output in the onClose method of WebSocketServiceImpl.
"Web socket connection closed CLOSED_ABNORMALLY"
Can I get some sample code that avoids the error?
Or is it okay to ignore this error?

matsufuji
 
Posts: 5
Joined: Tue Aug 06, 2024 4:57 am

Thu Nov 07, 2024 9:51 am

One more question.
When the html size becomes larger than a certain size, a different error occurs and the connection is closed during PDF conversion.
"Web socket connection closed UNEXPECTED_CONDITION, Buffer overflow"
We would like to be able to convert html that is over 1000 pages into PDF.
Is there a way to convert it into PDF?

matsufuji
 
Posts: 5
Joined: Tue Aug 06, 2024 4:57 am

Fri Nov 08, 2024 6:22 am

Hello, matsufuji

Thanks for your inquiry. The onClose method is a callback method that closes the connection. If you do not want to receive this output exception, you can override this method. As shown in the screenshot below. Additionally, please provide us with your input example HTML document for detailed investigation and analysis. You can upload here or send it to us via email( Amin.gan@e-iceblue.com ). Thank you in advance.

Sincerely,
Amin
E-iceblue support team
User avatar

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

Mon Nov 11, 2024 1:04 am

Hello
Thank you for your reply.
When I convert the attached html to pdf using the sample code you provided, a "buffer overflow" occurs.
Please check.

matsufuji
 
Posts: 5
Joined: Tue Aug 06, 2024 4:57 am

Mon Nov 11, 2024 3:38 am

Hello,

Thanks for your feedback. I reproduced the problem using the HTML you provided. This issue has been logged in our bug tracking system under the number SPIREPDF-7180. Our Dev team will investigate it further, once there is any update, we will let you know. 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

Tue Nov 12, 2024 9:51 am

Hello,

I am writing to inform you of the latest developments regarding the SPIREPDF-7180. The reason for the exception is that the buffer size is insufficient. Please refer to the screenshot below to set the buffer size. If you have any further questions, please feel free to provide feedback.

Sincerely,
Amin
E-iceblue support team
User avatar

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

Wed Nov 13, 2024 4:24 am

Hello
The buffer overflow has been resolved.
Thank you for your reply.

matsufuji
 
Posts: 5
Joined: Tue Aug 06, 2024 4:57 am

Wed Nov 13, 2024 8:55 am

Hello,

Thanks for your feedback. I am glad to hear that you have resolved this issue. Please feel free to provide feedback if you have any further questions.

Sincerely,
Amin
E-iceblue support team
User avatar

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

Return to Spire.PDF