Hi,
I have used your ASPOSE.Total Product for a long time.
Now in my web based poject my client gave me a requirement to extract the text from a PDF file and save it as a text file.
I use the following code to do this and it worked fine when I run this code through Dot Net.
Aspose.Pdf.Kit.License lic = new Aspose.Pdf.Kit.License();
string path = Server.MapPath("~/Bin/Aspose.Total.lic");
lic.SetLicense(path);
String file = FileUpload1.PostedFile.FileName;
PdfExtractor extractor = new PdfExtractor();
extractor.BindPdf(file);
extractor.ExtractText();
extractor.GetText(@"D:\text.txt");
But when I publist this code on the IIS that means on the web server then it gives the error like this...
System.IO.IOException: Wrong text extracting, please check your pdf.
In dot net it works fine but on IIS it does not work and gives the error.
I use the Aspose.PDF.Kit (Version 3.2.0.0) and I am working on ASP.Net 3.5 and I am also attaching a PDF to test it.
Please help me to recover this problem ASAP.
Munendra Maheshwari
Hi,
I'm looking into the matter and you'll be updated with the results soon.
Can you please provide IIS/OS versions of the deployment machine as well? And is it 32 bit or 64 bit system?
We really appreciate your patience and cooperation.
Regards,
OS - Microsoft Windows Server 2003 standard x64 Edition (Service Pack 2)
IIS 6.0
Hi,
I am sorry to inform you that, Extraction of text from Pdf file is currently not supported on 64 Bit OS version. Our development team is working hard to support this feature on 64 Bit and we hope it would be available in our future versions, but I am afraid at the moment, I might not be able to provide you the exact dates by which it would be available.
I tried the extraction over 32 Bit Windows XP SP2 and its working fine. The extracted text in the form of text file is in attachment, please take a look.
Hi,
I hope we can support 64 bit Windows late this month. Sorry for the inconvenience.
Hi Forever,
Thanx for the reply.
Please let me know by how much time will resolve this problem because I am indeed in need for this or just suggest me another way to perform this please. This is a very big requirement of my poject.
Hi,
Sorry I can't provide the exact ETA since there are some uncertain problems. If you are urgent, as a workaround you can build your project with "x86" instead of "any CPU".
Hi Tommy Wang,
This time I am in dilema that what to do to extract text from a PDF file over a 64-bit machine. How this dream become possible for me I don know, but I know I can loose my job if it does not happens.
Please sir tell me How can I extract text from the PDF file. I am in need indeed.
The web server on which I have to work or upload is in USA, so I can not change that one.
Positive Reply will be appreciable for me.
Hi,
We will try our best to provide a new version that support X64 ASAP but I still can't provide exact ETA. Have you tried build your project with "x86" instead of "any CPU"?
What does this line meant “Have you tried build your project with “x86” instead of “any CPU”?” I really couldn’t understand?
Hi Munendra,
Visual Studio .NET allows you to set ‘Platform Target’ which sets the platform status information on the assembly’s CLR header. In your case, you’ll have to set this platform target to x86 instead of Any CPU.
For more details on Visual Studio .NET Platform Target please visit this link
[In order to set change this option please visit this link]
I hope this helps. If you still find any confusion or questions please do let us know.
Regards,
Hi shahzad.latif,
First of all thanx for the quick reply.
Now I wanna tell you that the option to change the compile option from “Any CPU” to “x86” is found in the Windows application project and I am working in a web based application in ASP.Net. So will you please tell me how can I overcome by my prob for a web based application.
Please reply ASAP.
Hi Munendra,
I'm sorry to inform you that I'm unable to find the option to target a web project for x86. Nevertheless, I have a good news for you; we're going to release new version supporting x64 late this month.
We'll really appreciate your patience.
Regards,
Hi Shahzad Latif,
I am still waiting for your new version of ASPOSE.PDF.Kit which can work on 64 bit as u told me that you are releasing that one in the last of month of march.
Please give me reply with a positive response.
Munendra Maheshwari
Hi Munendra,
We had plans to support 64 bit machines in our latest release, but due to certain technical difficulties we couldn't do that. I'm extremely sorry for the inconvenience. Nevertheless, our team is working hard to support 64 bit machines, and a beta version will be available with in 2 to 3 weeks. If you're interested, I'll update you once the beta version will be available.
We would really appreciate your patience.
Regards,
Hi Munendra,
We have released a new version of Aspose.Pdf.Kit (3.5.0.0). This version is fully supported on 64-bit machines. Please download it from this link.
Regards,