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 Aug 04, 2021 12:57 pm

Hello,

i am using Spire.PDF 7.8.2 and get a null pointer exception when calling "PdfLayoutResult Draw" in "GetLineWidth" and have no idea why.
Funny thing is that this null pointer only occurs the second time the code is executed.

Do you have any ideas why this happens or do you need further information?

lapidservicegmbh
 
Posts: 7
Joined: Wed Aug 04, 2021 12:45 pm

Thu Aug 05, 2021 6:55 am

Hello,

Thank you for your inquiry.
According to your description, I did some tests with Spire.PDF 7.8.2 but did not encounter any exception. In order to help us investigate your issue quickly and effectively, please provide the following information. You could attach them here or send them to us via email ([email protected]). Thanks in advance.
1) Your input file (if any)
2) Your full testing code.
3) Your test environment, such as OS info (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese).
4) Your application type, such as Console app (. Net Framework 4.5).

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF