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.

Sat Jan 01, 2022 8:23 pm

Test to reproduce:
Code: Select all
    @Test
    void npeWithDpd() throws IOException {
        PdfDocument doc;
        try(
                InputStream is = new FileInputStream(new File("dpd.pdf"))
        ) {
            doc = new PdfDocument();
            doc.loadFromStream(is);
        }
        doc.saveAsImage(0);
    }

Stacktrace:
Code: Select all
java.lang.NullPointerException
   at com.spire.pdf.PdfPageWidget.getPageLayerDefines(Unknown Source)
   at com.spire.pdf.packages.sprBCA.spr  (Unknown Source)
   at com.spire.pdf.packages.sprBCA.spr (Unknown Source)
   at com.spire.pdf.packages.sprBCA.spr (Unknown Source)
   at com.spire.pdf.packages.sprBCA.spr  (Unknown Source)
   at com.spire.pdf.PdfDocumentBase.spr  (Unknown Source)
   at com.spire.pdf.PdfDocumentBase.spr  (Unknown Source)
   at com.spire.pdf.PdfDocument.spr  (Unknown Source)
   at com.spire.pdf.PdfDocument.saveAsImage(Unknown Source)

Environment: Win10, java 11, spire.pdf.free 4.4.1
Attached the DPD

j6ukur123
 
Posts: 4
Joined: Tue Apr 28, 2020 8:41 pm

Tue Jan 04, 2022 3:48 am

Hello,

Thanks for your inquiry!
After converting your Pdf document, I did reproduce your issue. We have logged this issue into our bug tracking system with the ticket SPIREPDF-4877. Our Develop team will further investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.

Sincerely,
William
E-iceblue support team
User avatar

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

Thu Feb 17, 2022 2:33 am

Hello,

Glad to inform that we just released Spire.PDF for Java Version:5.2.3 which fixes the issue SPIREPDF-4877. Welcome to test it.

Sincerely,
William
E-iceblue support team
User avatar

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

Thu Feb 17, 2022 6:21 am

Hi!

What is the according version for spire.pdf.free release version? I'd like to contribute to further testing.

j6ukur123
 
Posts: 4
Joined: Tue Apr 28, 2020 8:41 pm

Thu Feb 17, 2022 10:42 am

Hello,

Thanks for your reply!
Sorry that we only upgrade our free version irregularly, and we will only inform the bug fixes of our commercial version. Hope you can understand!

Sincerely,
William
E-iceblue support team
User avatar

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

Thu Feb 17, 2022 11:20 am

Finding the latest free version release is not that easy as well. I understand the policy.

j6ukur123
 
Posts: 4
Joined: Tue Apr 28, 2020 8:41 pm

Fri Feb 18, 2022 2:49 am

Hello,

Thank you for your understanding. Yes, at present we have no plans to release a new Free Spire.PDF for Java version.
You can continue to pay attention to our official website.

Sincerely,
William
E-iceblue support team
User avatar

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

Return to Spire.PDF