Re: [Tutor] Reading from files problem

2009-04-21 Thread ALAN GAULD
> this worked for me fine. I'm glad you solved tyour problem. But you have done so in an extremely inefficient way, both inefficient in the way it uses computer resources - both CPU and storage, and inefficient in the way it uses your time - way more code than you need. If you only need an answ

[Tutor] PDF to text conversion

2009-04-21 Thread Robert Berman
Hi, I must convert a history file in PDF format that goes from May of 1988 to current date. Readings are taken twice weekly and consist of the date taken mm/dd/yy and the results appearing as a 10 character numeric + special characters sequence. This is obviously an easy setup for a very sma

Re: [Tutor] PDF to text conversion

2009-04-21 Thread bob gailer
Robert Berman wrote: Hi, I must convert a history file in PDF format that goes from May of 1988 to current date. Readings are taken twice weekly and consist of the date taken mm/dd/yy and the results appearing as a 10 character numeric + special characters sequence. This is obviously an easy

Re: [Tutor] PDF to text conversion

2009-04-21 Thread عماد نوفل
On Tue, Apr 21, 2009 at 12:54 PM, bob gailer wrote: > Robert Berman wrote: > >> Hi, >> >> I must convert a history file in PDF format that goes from May of 1988 to >> current date. Readings are taken twice weekly and consist of the date taken >> mm/dd/yy and the results appearing as a 10 charact

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Robert Berman
Bob, Thank you for the quick reply. I am acquainted with that method, and that will certainly work to do some really serious testing; but, the data collection is an ongoing process and the users are requesting that every month the latest entries (8) are brought into the system. What is rathe

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Robert Berman
Hello Emad, I have seriously looked at the documentation associated with pyPDF. This seems to have the page as its smallest element of work, and what i need is a line by line process to go from .PDF format to Text. I don't think pyPDF will meet my needs but thank you for bringing it to my atte

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Emile van Sebille
Robert Berman wrote: Have any of you worked with such a library, or do you know of one or two I can download and work with? Hopefully, they have reasonable documentation. My development environment is: Python Linux Ubuntu version 8.10 I've used [r...@fcfw2 /]# /usr/bin/pdftotext -v pdft

Re: [Tutor] PDF to text conversion

2009-04-21 Thread johnf
On Tuesday 21 April 2009 10:36:59 am Robert Berman wrote: > Bob, > > Thank you for the quick reply. I am acquainted with that method, and > that will certainly work to do some really serious testing; but, the > data collection is an ongoing process and the users are requesting that > every month t

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Dinesh B Vadhia
Hi Robert I don't have an answer but can have my sympathy. I've been looking for a quality pdf to text convertor for months and not turned up anything useful. I've tried many free programs which are poor. I too wanted a Python-only solution and tried pyPdf but that didn't work. Just today I

Re: [Tutor] PDF to text conversion

2009-04-21 Thread johnf
On Tuesday 21 April 2009 11:05:32 am Dinesh B Vadhia wrote: > Hi Robert > > I don't have an answer but can have my sympathy. I've been looking for a > quality pdf to text convertor for months and not turned up anything useful. > I've tried many free programs which are poor. I too wanted a Python

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Dayo Adewunmi
Emile van Sebille wrote: Robert Berman wrote: Have any of you worked with such a library, or do you know of one or two I can download and work with? Hopefully, they have reasonable documentation. My development environment is: Python Linux Ubuntu version 8.10 I've used [r...@fcfw2 /]#

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Martin Walsh
Robert Berman wrote: > Hello Emad, > > I have seriously looked at the documentation associated with pyPDF. This > seems to have the page as its smallest element of work, and what i need > is a line by line process to go from .PDF format to Text. I don't think > pyPDF will meet my needs but thank y

Re: [Tutor] PDF to text conversion

2009-04-21 Thread David
bob gailer wrote: Robert Berman wrote: Hi, I must convert a history file in PDF format that goes from May of 1988 to current date. Readings are taken twice weekly and consist of the date taken mm/dd/yy and the results appearing as a 10 character numeric + special characters sequence. This i

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Norman Khine
the itools library from hforge.org has a PDF2TEXT implementation itools.pdf http://www.hforge.org/itools norman On Tue, Apr 21, 2009 at 8:44 PM, Dayo Adewunmi wrote: > Emile van Sebille wrote: >> >> Robert Berman wrote: >> >> >>> Have any of you worked with such a library, or do you know of on

Re: [Tutor] Sending a disconnect after openssl s_client command?

2009-04-21 Thread Martin Walsh
Kayvan Sarikhani wrote: > On Mon, Apr 20, 2009 at 1:17 PM, Martin Walsh > wrote: > > from subprocess import Popen, PIPE > > openssl_cmd = 'openssl s_client -ssl2 -connect somewebsitename:443' > openssl = Popen( > openssl_cmd, shell=True, stdout=PIPE, st

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Robert Berman
First, thanks to everyone who contributed to this thread. I have a number of possible solutions and a number of paths to pursue to determine which avenue I should take to resolve this remaining issue. I did try the itools library and while everything installed nicely, most of the tests failed s