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


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.


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

Fri May 17, 2013 2:26 am


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

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

E-iceblue support team
User avatar

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.

E-iceblue support team
User avatar

Posts: 2407
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc