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!
PdfDocument document = new PdfDocument();
document.LoadFromFile("test.pdf");
document.SaveToFile("test.svg", FileFormat.SVG);
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.
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