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 Dec 09, 2020 10:42 am

I use Spire.Pdf.dll version 6.12.3 to convert PDF to SVG

win 10

.NET 4.6.1

Code: Select all

PdfDocument document = new PdfDocument();

document.LoadFromFile("test.pdf");

document.SaveToFile("test.svg", FileFormat.SVG);



Then NullReferenceException error occurred.

How to solve this problem,Thank you!

howzehowze
 
Posts: 18
Joined: Wed Jan 08, 2020 1:33 am

Thu Dec 10, 2020 2:49 am

Hello,

Thanks for your inquiry!

I have tested your file and did reproduce your issue. But when I open the file by Adobe, Adobe prompts “An error exists on this page”, like the following image.
error.png

I am afraid that your issue is caused by an error in the contents of the Pdf itself, and we recommend that you use the Pdf files which are opened without errors by Adobe.

If the issue still exists, please provide us with your new input file for further investigation. Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Thu Dec 10, 2020 4:10 am

Marcia.Zhou wrote:Hello,

Thanks for your inquiry!

I have tested your file and did reproduce your issue. But when I open the file by Adobe, Adobe prompts “An error exists on this page”, like the following image.
error.png

I am afraid that your issue is caused by an error in the contents of the Pdf itself, and we recommend that you use the Pdf files which are opened without errors by Adobe.

If the issue still exists, please provide us with your new input file for further investigation. Thanks in advance.

Sincerely,
Marcia
E-iceblue support team


Yes, this is the problem of the PDF file itself, thank you!

howzehowze
 
Posts: 18
Joined: Wed Jan 08, 2020 1:33 am

Thu Dec 10, 2020 6:02 am

Hello,

You are welcome.

Glad to hear that you find the reason of this issue.

If you need further assistance, just feel free to contact us.

Wish you all the best!

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.PDF