473,441 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

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

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
1 1927
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Newbie | last post by:
I am trying to get the save/open dialog figured out. I am able open the save dialog but when I put in a file name (whatever.txt) and save the file does save with the name but it is blank. Below...
0
by: Michael | last post by:
I have a problem forcing files to download. If I select Save the document is saved with no problems. If I select "Open" the document is empty or I get a "File not found" error from the application...
4
by: Dorte | last post by:
Hi, I am using the code below to stream a CSV file with the response object. Dim FileName As String = "Test.csv" With Web.HttpContext.Current.Response ...
6
by: Michael Groeger | last post by:
Hi, I have an aspx page which generates an excel document and transfers it to the browser as attachment. Normally, once the document is transferred the open save dialog prompts to open or save...
4
by: Bishman | last post by:
Hi, Can someone suggest the best technique / method of opening a Word ( or any other ) Document from an SQL BLOB ? I have the process of saving and retrieveing the file from an SQL Binary...
4
by: Bob Bedford | last post by:
Hi all, I'm stuck with some php code that runs out of time limit. This is due to a long XML file process that has to save pictures on the disk. What I've now: - read XML file - parse XML...
0
by: jrshack | last post by:
I'm using PHP to collect html form inputs and populates form fields in a PDF document. After it populates the PDF with the inputs from the front-end html form It prompts you to "open or save the...
14
by: Zoro | last post by:
My task is to read html files from disk and save them onto SQL Server database field. I have created an nvarchar(max) field to hold them. The problem is that some characters, particularly html...
2
hsriat
by: hsriat | last post by:
I am not sure how many of you would have faced this problem, but I faced this many times. I am not good at memorizing things, so I give lot of code comment in my code. And never wanted that code to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.