Cannot load PDF files

Technical support for Spire.Doc

Moderator: iceblue support

Cannot load PDF files

Postby tonylintunen » 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

Re: Cannot load PDF files

Postby Gary.zhang » 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: 1390
Joined: Thu Apr 04, 2013 1:30 am

Re: Cannot load PDF files

Postby amy.zhao » 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: 2251
Joined: Wed Jun 27, 2012 8:50 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests