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.

Tue Dec 22, 2015 12:21 pm

Greetings, i'm using Spire.Pdf free license, it's works fine except for a Pdf file that makes this ArgumentNullException:

"Parameter name: parent is null"

in sprឝ.ᜀ(XmlElement A_0, String A_1)
in sprạ.ᜀ(String A_0)
in sprᤵ.ᜅ()
in Spire.Pdf.Xmp.XmpEntityBase.Initialize()
in Spire.Pdf.Xmp.XmpSchema..ctor(XmpMetadata xmp)
in sprᤵ..ctor(XmpMetadata A_0)
in Spire.Pdf.Xmp.XmpMetadata.ᜌ()
in sprᣐ.ᜃ()
in sprᣐ.ᜁ(Stream A_0)
in sprᣐ..ctor(Stream A_0)
in sprᣐ..ctor(String A_0)
in Spire.Pdf.PdfDocument.LoadFromFile(String filename)
in BoninoFileServer.BoninoFileServer.PdfToImage(String fileName) in C:\Users\7M26-LB-00037N\BoninoFileServer\BoninoFileServer\BoninoFileServer.asmx.vb:riga 175

Here my code:
Dim doc As New Spire.Pdf.PdfDocument()
doc.LoadFromFile(fileName)

It's crash at LoadFromFile. I'm using Framework .NET 3.5.

[email protected]
 
Posts: 8
Joined: Tue Dec 22, 2015 12:15 pm

Wed Dec 23, 2015 1:54 am

Hi,

Thanks for your inquiry.
At present the latest version of Spire.PDF is Spire.PDF Pack(Hot Fix) Version:3.6.20, please try it.

If the issue still exists, please provide us your pdf file.

Thank you.
Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Wed Dec 23, 2015 9:31 am

Thanks, but it doesn't work. I've used the new 3.6.20 DLL provided but the error still persists. I've put my Pdf file on attachment.

[email protected]
 
Posts: 8
Joined: Tue Dec 22, 2015 12:15 pm

Wed Dec 23, 2015 9:42 am

Hello,

Thanks for the information, I have replicated the issue and posted it to our Dev team, once it is resolved or we have some other update for you, we will let you know ASAP.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Dec 31, 2015 6:27 am

Hi,

Thanks for your waiting.
The issues has been resolved. Welcome to download and testspire.pdf 3.6.44.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Mon Jan 04, 2016 6:20 am

Hi,

Did new version resolve your issue?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Mon Jan 11, 2016 7:31 am

Sorry for late answer, but i'm back from holiday just now. Yes, this update resolve the issue! Very thanks!

[email protected]
 
Posts: 8
Joined: Tue Dec 22, 2015 12:15 pm

Mon Jan 11, 2016 8:16 am

Hi,

Thanks for your feedback.
Please feel free to contact us if you have further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Mon Feb 08, 2016 3:00 pm

Sorry if i resume this post. By i have another System.NullReferenceException with another file PDF. I've already try the latest hot fix 3.6.135.

On attachment there is my Pdf file.

[email protected]
 
Posts: 8
Joined: Tue Dec 22, 2015 12:15 pm

Tue Feb 09, 2016 6:22 am

Hi,

I tested your new pdf file with Spire.Pdf 3.6.135 for .net4.0, but didn't reproduce your issue. The pdf was loaded successfully.
Would you please tell us your system environment?

Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Tue Feb 09, 2016 7:13 am

Sure. I'm using:

Framework .NET 3.5
Visual Studio 2008
Windows 7 64 bit
Spire Pdf free license (limited to 10 pages).

Also i've investigated, the Exception raise at .SaveAsImage method. Here my code and Stack trace:

Code: Select all
doc.SaveAsImage(0, Spire.Pdf.Graphics.PdfImageType.Bitmap, 100, 100)


StackTrace:
Code: Select all
   in Spire.Pdf.Widget.PdfAnnotationWidgetCollection.ᜀ(Int32 A_0)
   in Spire.Pdf.Widget.PdfAnnotationWidgetCollection..ctor(PdfPageBase A_0)
   in Spire.Pdf.PdfPageBase.ᜓ()
   in Spire.Pdf.PdfPageWidget..ctor(PdfDocumentBase A_0, spr᪴ A_1, spr  A_2)
   in Spire.Pdf.Widget.PdfPageCollection.ᜄ(spr  A_0)
   in spr᪴.ᜀ(sprᢿ A_0)
   in spr᪴.ᜄ(sprᢿ A_0)
   in spr᧞.ᜂ()
   in spr᧞.ᜀ()
   in spr᧞.ᜅ()
   in spr᪴.ᜄ(sprᢿ A_0)
   in Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0, Int32& A_1, Boolean A_2)
   in Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0)
   in Spire.Pdf.Widget.PdfPageCollection.get_Item(Int32 index)
   in Spire.Pdf.PdfDocumentBase.ᜀ(Int32 A_0, Int32 A_1, Int32 A_2)
   in Spire.Pdf.PdfDocumentBase.ᜀ(Int32 A_0, PdfImageType A_1, Int32 A_2, Int32 A_3)
   in Spire.Pdf.PdfDocument.SaveAsImage(Int32 pageIndex, PdfImageType type, Int32 dpiX, Int32 dpiY)
   in BGLibrary.PdfToImage.PdfToImage(String fileName) in C:\Users\7M26-LB-00037N\Gestionale\BGLibrary\Gestione files\PdfToImage.vb:riga 22

[email protected]
 
Posts: 8
Joined: Tue Dec 22, 2015 12:15 pm

Tue Feb 09, 2016 9:50 am

Hi,

Thanks for your further information.
I reproduced your issue and forwarded it to our dev team. We will inform you when it is resolved.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Wed Mar 02, 2016 8:21 am

Hi,

Thanks for your waiting. There is an update on your issue.
The exception at .SaveAsImage method has been resolved by new version(Spire.PDF Pack(Hot Fix) Version:3.6.167). But there are some text in converted images are not correct, sorry, our dev team will fix the issue. We will inform you when the issue is fixed.
Besides, sorry that at present our Spire.PDF doesn't support U3D feature, so the right graph of the following picture will not be converted.
002.png


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Wed Mar 02, 2016 8:49 am

Thank you very much! I'll try the hot fix soon and i tell you if resolved my issue.

Update: the hit fix solved my problem! Very thanks.

[email protected]
 
Posts: 8
Joined: Tue Dec 22, 2015 12:15 pm

Thu Mar 03, 2016 3:58 am

Hi,

Thanks for your feedback.
Welcome to write to us again for further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF