By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,854 Members | 2,015 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,854 IT Pros & Developers. It's quick & easy.

I want to open and read a pdf file from disk and save content as text fromat...

P: n/a
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.
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.