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 Jul 14, 2018 8:55 pm

This crashes

Dim ofd As New OpenFileDialog
Dim sfd As New SaveFileDialog
ofd.ShowDialog()

Dim doc As New PdfDocument()
doc.LoadFromFile(ofd.FileName)
sfd.ShowDialog()
doc.SaveToFile(sfd.FileName, FileFormat.DOC) '<<<< CHrashes here
doc.Close()

WIth the error

An unhandled exception of type 'System.IndexOutOfRangeException' occurred in Spire.Pdf.dll

Additional information: Index was outside the bounds of the array.

It creates an empty .DOc file. Any clues what is wrong?

davemc759
 
Posts: 1
Joined: Sat Jul 14, 2018 4:21 pm

Mon Jul 16, 2018 6:17 am

HI davemc759,

Thanks for your post.
We suggest you first upgrade your dlls to the latest Spire.PDF Pack(Hot Fix) Version:4.7.4 if you were using old version.
If the issue still troubles you, please provide the input document for further investigation.
Sincerely,
Hogan
E-iceblue support team
User avatar

hogan.tang
 
Posts: 51
Joined: Tue Jul 03, 2018 1:43 am

Wed Jul 18, 2018 6:52 am

Dear davemc759,

Has your issue been solved? Your feedback would be greatly appreciated.
Sincerely,
Hogan
E-iceblue support team
User avatar

hogan.tang
 
Posts: 51
Joined: Tue Jul 03, 2018 1:43 am

Return to Spire.PDF