Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Thu May 16, 2013 6:56 pm

Hello.

I am attempting to load a pdf file via this code:

Dim Doc As New Spire.Doc.Document

Doc.LoadFromFile(Me.TextBox1.Text, Spire.Doc.FileFormat.PDF)


However, it is not working. An exception is being thrown: The file format cannot be supported.

Am I doing something wrong? I tried several different pdf files.

Thanks.

tonylintunen
 
Posts: 3
Joined: Tue May 07, 2013 6:09 pm

Fri May 17, 2013 2:26 am

Hello,

Thanks for your inquiry.

Sorry for inconvenience. The Spire.Doc couldn't support to load pdf file, please download and use the Spire.pdf to load it from http://www.e-iceblue.com/Download/download-pdf-for-net-now.html via the code as below. Furthermore, what would you like to do after loading the file? If there are any questions, we could provide more help for you.

Code: Select all
Dim pdf As New Spire.Pdf.PdfDocument
pdf.LoadFromFile(Pdftxt.Text)


If there are any questions, welcome to get it back to you.

Sincerely,
Gary
E-iceblue support team
User avatar

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

Tue May 21, 2013 11:09 am

Dear tonylintunen,

Has this issue been solved?
Please give us a feedback message at your early convenience.
There is any issue, please feel free to contact us.

Regards,
Amy
E-iceblue support team
User avatar

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

Return to Spire.Doc