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.