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.

Thu Oct 16, 2014 8:50 pm

Hello,

Downloaded Free version of Spire PDF and copy/pasted your code to extract text from PDFs.
The code compiles but i get an exception at run-time with the following stack trace :

'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'c:\users\johnl\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'
The thread 'vshost.NotifyLoad' (0x7bc) has exited with code 0 (0x0).
The thread '<No Name>' (0x14fc) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0xc0c) has exited with code 0 (0x0).
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'c:\users\johnl\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe', Symbols loaded.
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'c:\users\johnl\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\Spire.Pdf.dll'
'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'c:\users\johnl\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\Spire.License.dll'
A first chance exception of type 'System.NullReferenceException' occurred in Spire.License.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in Spire.License.dll
A first chance exception of type 'System.NullReferenceException' occurred in Spire.License.dll
A first chance exception of type 'System.NullReferenceException' occurred in Spire.License.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in Spire.License.dll
A first chance exception of type 'System.NullReferenceException' occurred in Spire.License.dll
A first chance exception of type 'System.NullReferenceException' occurred in Spire.License.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in Spire.License.dll
A first chance exception of type 'System.NullReferenceException' occurred in Spire.License.dll
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll

Additional information: Input string was not in a correct format.

'ConsoleApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
The program '[5756] ConsoleApplication1.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

Do i need a license for the free version or am i doing something wrong here ?

Thank you,

John L

johnl
 
Posts: 3
Joined: Thu Oct 16, 2014 7:51 pm

Thu Oct 16, 2014 8:54 pm

Please also note that this is happening when i am executing page.extractText();
The pdf file loads correctly with no issues ...

johnl
 
Posts: 3
Joined: Thu Oct 16, 2014 7:51 pm

Fri Oct 17, 2014 1:57 am

Dear johnl,

Thanks for your inquiry.

I cannot reproduce the issue you encountered.
Please upload the document file and code snippet(zip them) to help us reproduce it.

Best regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Fri Oct 17, 2014 10:11 am

Hello,

Thank you for your help.
Here is the project in VS2010 format.
Please note that i have removed the dlls (spire pdf and spire license) from the bin/debug/ directory so as to be able to upload the project. They are transferred there upon build with no problems though...

Best Regards,

John

johnl
 
Posts: 3
Joined: Thu Oct 16, 2014 7:51 pm

Mon Oct 20, 2014 1:35 am

Dear johnl,

Thanks for your reply.

I'm sorry that your project runs ok on my machine, and I upload the project(with result) there, you can download it.
Note:I removed the dlls as the file size is larger than 2mb, and your project's target framework is .NET Framework 4 Client Profile,
make sure that you reference the right dlls.

I'm using Free Spire.PDF for .NET v3.0.55.

Best regards,
Burning
E-iceblue Support Team

ConsoleApplication1.zip
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Thu Oct 23, 2014 8:04 am

Dear johnl,

Has your problem been resolved?
If not, please provide more information to help us resolve it.

Best Regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Return to Spire.PDF