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.

Tue Aug 05, 2014 9:20 am

Attached file is zipped PDF , I want to retrieve text from it, but get mostly empty string, instead of a text already on the first page. Other libraries (will not list them here) can retrieve text from this PDF, but they are much more expensive then this one.

Code: Select all
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Spire.Pdf;


namespace GM_PdfProcessor.PDF
{
    public class SpirePdfHandler
    {

        public void ExtractText(string fileName)
        {
            PdfDocument doc = new PdfDocument();
            doc.LoadFromFile(fileName);

            StringBuilder buffer = new StringBuilder();
         
            string aha ="";

            foreach (PdfPageBase page in doc.Pages)
            {
                aha = page.ExtractText();               
            }
        }
    }
}


Spire.PDF is from the NuGET of ver 3.1.9.5040

blaze
 
Posts: 4
Joined: Tue Aug 05, 2014 8:59 am

Tue Aug 05, 2014 10:16 am

Hello,

I reproduced the issue that you encountered and posted it to our dev team.
Once there is any progress, I will tell you immediately.
If you get any questions, welcome to get it back to us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Thu Aug 14, 2014 8:24 am

Dear blaze,

Thanks for your waiting.

We have released a new version of Spire.PDF to solve your problem. You can download it via following link:
http://www.e-iceblue.com/downloads/hot_ ... 3.1.24.zip
Spire.PDF Pack(Hot Fix) Version:3.1.24

Please feel free to contact us if you have any problems.

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

Mon Aug 18, 2014 8:38 am

Dear blaze,

Have your problem been resolved?
If not, please provide us more information about your problem.

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

Thu Aug 21, 2014 7:38 am

If you have solved this problem - that's very good. I am not able to test it right now. Please unsubscribe me from your support emails reminding/asking me every 2 days to test this fix for you.

blaze
 
Posts: 4
Joined: Tue Aug 05, 2014 8:59 am

Thu Aug 21, 2014 8:11 am

Dear blaze,

I am sorry for the inconvenience.
Please feel free to contact us if you have any problems.

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