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 09, 2023 12:52 pm

I am writing to report a problem I have encountered while using the PDF to SVG converter. Specifically, I have noticed that when converting some PDF files to SVG, a NullPointerException is throwed.

My code is simple:

Code: Select all
document.saveToFile(path, FileFormat.SVG);


I have attached an example PDF to illustrate the problem more clearly.

If you require any further information or additional examples to assist in resolving this issue, please do not hesitate to reach out to me. I am more than willing to provide any necessary details to facilitate a prompt resolution.

Information:
- Ubuntu 22
- Spire PDF for Java 9.10.3
- spring boot - jdk 1.8

rubensalado
 
Posts: 9
Joined: Mon Sep 04, 2023 8:47 am

Fri Nov 10, 2023 8:05 am

Hi,

Thank you for your inquiry.
I tested the pdf file and code you provided and encountered the same problem as you. Please kindly note that our product strictly follows the specification of Adobe Acrobat. When I open your file through the software Adobe Acrobat, the error in the screenshot below will appear. Therefore, I guess this issue caused by the document structure of your pdf file. Please check if your PDF file is correct.
2023-11-10 160112.png


Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Fri Nov 10, 2023 8:25 am

Thank you for your prompt response.

I appreciate your efforts in testing the PDF file and code. I understand that you encountered the same issue, as mentioned in your previous message. However, I would like to bring to your attention that despite the error, Adobe Acrobat is capable of opening and displaying the PDF file correctly.

Moreover, I have confirmed that other PDF readers do not report any problems at opening.

Is there anything that can be done to address this discrepancy and ensure compatibility?

Ula.wang wrote:Hi,

Thank you for your inquiry.
I tested the pdf file and code you provided and encountered the same problem as you. Please kindly note that our product strictly follows the specification of Adobe Acrobat. When I open your file through the software Adobe Acrobat, the error in the screenshot below will appear. Therefore, I guess this issue caused by the document structure of your pdf file. Please check if your PDF file is correct.
2023-11-10 160112.png


Sincerely,
Ula
E-iceblue support team

rubensalado
 
Posts: 9
Joined: Mon Sep 04, 2023 8:47 am

Fri Nov 10, 2023 9:22 am

Hi,

Thank you for your inquiry.
I have recorded this issue in our bug tracking system with the number "SPIREPDF-6394". Our development team will investigate to check if this issue can be resolved. If there are any updates, we will notify you as soon as possible. We deeply apologize for the inconvenience caused.

Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Mon Dec 04, 2023 9:24 am

Hi,

Thank you for your patience.
I'm glad to inform you that we just released Spire.PDF for Java 9.12.0 has resolved your issue with SPIREPDF-6394. Welcome to download the test.

Website download link: https://www.e-iceblue.com/Download/pdf-for-java.html

Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Return to Spire.PDF