Hi,
I tested Neevia's ActiveX docCreator (
http://www.neevia.com/products/cr/) to
do just that
and it works fine (is a bit slow though)
- It's shareware, so you'll get a non-commercial 30-days trial licence -
Here's my snippet (conversion pdf to txt file) :
docCreator.docCreatorClass PDFWorkBench = new docCreator.docCreatorClass();
PDFWorkBench.SetInputDocument(GivenPDFPathAndFileN ameString, "");
PDFWorkBench.DocumentOutputFormat = "TXT";
PDFWorkBench.DocumentOutputName = GivenTXTFileNameString;
PDFWorkBench.DocumentOutputPath = GivenTXTFilePathString;
int ConvertResult = PDFWorkBench.Create();
// Unlike the the SetInputDocument member (wich accepts path+filename in one
string)
// you need to use two members to pass the output path and filename
seperatly
if (ConvertResult != 0)
{
// Conversion was NOT succesfull. Check their doc for the meaning of the
various
// error codes.
}
AinO.
PS. Not affiliated with Neevia in any way.
---
"Alex Smith" <sa*@gmail.com> wrote in message
news:e3**************@TK2MSFTNGP09.phx.gbl...
Hi Friends,
I want to open and read a pdf file from disk And save this content of pdf
file into .txt file.
In short I want to convert content of pdf into .txt formate and save this
text file on desk.
Thanks.
Alex.