Re: [Tutor] pdf generation problem

2017-03-03 Thread Peter Otten
Jason Snyder wrote: > I have the following program where I am trying to generate a pdf: > > 1 import matplotlib > 2 matplotlib.use('AGG') > 3 import matplotlib.pyplot as plt > 4 import matplotlib.image as image > 5 import matplotlib.gridspec as gridspec > 6 fro

Re: [Tutor] pdf generation problem

2017-03-03 Thread Alan Gauld via Tutor
On 04/03/17 00:28, Jason Snyder wrote: > I have the following program where I am trying to generate a pdf: > 6 from matplotlib.backends.backend_pdf import PdfPages > 7 import numpy as np > 13 with PdfPages('wx_plot.pdf') as pdf: > When I run it I get the following error: > > Tr

[Tutor] pdf generation problem

2017-03-03 Thread Jason Snyder
I have the following program where I am trying to generate a pdf: 1 import matplotlib 2 matplotlib.use('AGG') 3 import matplotlib.pyplot as plt 4 import matplotlib.image as image 5 import matplotlib.gridspec as gridspec 6 from matplotlib.backends.backend_pdf imp

Re: [Tutor] PDF Scrapping

2015-11-25 Thread shawn wilson
On Nov 25, 2015 12:44 PM, "Francois Dion" wrote: > > if you > have any choice at all, avoid PDF at all cost to get data. > Agreed and IIRC all of that data should be in xml somewhere (look for their rpc pages). Probably start by searching for similar table names (and Google dorking their site fo

Re: [Tutor] PDF Scrapping

2015-11-25 Thread Laura Creighton
In a message of Wed, 25 Nov 2015 12:43:51 -0500, Francois Dion writes: >This is well beyond the scope of Tutor, but let me mention the following: > >The code to pdftables disappeared from github some time back. What is on >sourceforge is old, same with pypi. I wouldn't create a project using >pdfta

Re: [Tutor] PDF Scrapping

2015-11-25 Thread Francois Dion
This is well beyond the scope of Tutor, but let me mention the following: The code to pdftables disappeared from github some time back. What is on sourceforge is old, same with pypi. I wouldn't create a project using pdftables based on that... As far as what you are trying to do, it looks like th

Re: [Tutor] PDF Scrapping

2015-11-25 Thread Python Beginner
Oh, I forgot to mention that I am using Python 3.4. Thanks again for your help pointing me in the right direction. ~Chris On Tue, Nov 24, 2015 at 1:36 PM, Python Beginner < pythonbeginner...@gmail.com> wrote: > Hi, > > I am looking for the best way to scrape the following PDF's: > > (1) > http:/

[Tutor] PDF Scrapping

2015-11-24 Thread Python Beginner
Hi, I am looking for the best way to scrape the following PDF's: (1) http://minerals.usgs.gov/minerals/pubs/commodity/gold/mcs-2015-gold.pdf (table on page 1) (2) http://minerals.usgs.gov/minerals/pubs/commodity/gold/myb1-2013-gold.pdf (table 1) I have done a lot of research and have read that

Re: [Tutor] PDF to TXT

2011-01-23 Thread Hongbao Chen
--- Message: 2 Date: Sun, 23 Jan 2011 11:56:14 -0500 From: Robert Berman To: Tutor@python.org Subject: [Tutor] PDF to TXT Message-ID: <1295801774.1653.11.camel@bermanrl-desktop> Content-Type: text/plain; charset="UTF-8" Hi, I am trying to convert .pdf files to

[Tutor] PDF to TXT

2011-01-23 Thread Robert Berman
Hi, I am trying to convert .pdf files to .txt files. The script I am using below is mostly taken from research done on Google and it appears to be the one outline most consistently favored (http://code.activestate.com/recipes/577095-convert-pdf-to-plain-text/). I am using Win 7, Python 2.7.1. My

Re: [Tutor] PDF to text conversion

2009-04-22 Thread David
Robert Berman wrote: Dinesh, I have pdftotext version 3.0.0. I have decided to use this to go from PDF to text. It is not the ideal solution, but is is a certainly doable solution. Thank you, Robert Dinesh B Vadhia wrote: The best converter so far is pdftotext from http://www.glyphandcog

Re: [Tutor] PDF to text conversion

2009-04-22 Thread Robert Berman
inesh Message: 4 Date: Tue, 21 Apr 2009 18:37:39 -0400 From: Robert Berman mailto:berma...@cfl.rr.com>> Subject: Re: [Tutor] PDF to text conversion To: tutor@python.org <mailto:tutor@python.org> Message-ID: <49ee4ab3.4040...@cfl.rr.com <mailto:49ee4ab3.4040...@cfl.rr.co

Re: [Tutor] PDF to text conversion

2009-04-22 Thread Dinesh B Vadhia
best result. hth. dinesh Message: 4 Date: Tue, 21 Apr 2009 18:37:39 -0400 From: Robert Berman Subject: Re: [Tutor] PDF to text conversion To: tutor@python.org Message-ID: <49ee4ab3.4040...@cfl.rr.com> Content

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

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] 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 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 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 johnf
t. Not sure what the answer is! > > Dinesh > > > --- >- > > Message: 5 > Date: Tue, 21 Apr 2009 13:44:16 -0400 > From: Robert Berman > Subject: Re: [Tutor] PDF to text conversion > To: "Emad Nawfal ( )" > Cc: tutor@python.org > Message-ID: <49ee05f0

Re: [Tutor] PDF to text conversion

2009-04-21 Thread Dinesh B Vadhia
bert Berman Subject: Re: [Tutor] PDF to text conversion To: "Emad Nawfal ( )" Cc: tutor@python.org Message-ID: <49ee05f0.3080...@cfl.rr.com> Content-Type: text/plain; charset=windows-1256; format=flowed Hello Emad, I have seriously looked at the documentation associated with

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 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 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 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 عماد نوفل
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 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

[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 syntax

2006-02-20 Thread Hugo González Monteverde
Hi, Syntax for composing a PDF is ugly PostScript. However, there are a couple of ways to use Python libraries to avoid the details. You can draw a canvas in Tkinter and then print it, then use something linke ps2pdf to do the conversion. http://effbot.org/tkinterbook/canvas.htm You can use Re

Re: [Tutor] pdf syntax

2006-02-19 Thread Alan Gauld
>> i want create n manipulate pdf files. >> can anybody tell me what is pdf syntax n how it works? PDF syntax is, I believe, a subset of Postscript. Postscript is a page description language so it defines a document something like a programming language draws graphics. Lots of positioning comm

Re: [Tutor] pdf syntax

2006-02-18 Thread Terry Carroll
On Sat, 18 Feb 2006, saurabh akshekar wrote: > i want create n manipulate pdf files. > can anybody tell me what is pdf syntax n how it works? > also best or efficient language in which i should write program I'm looking into this myself. From what I gather, Reportlab's PDF toolkit ("The R

[Tutor] pdf syntax

2006-02-18 Thread saurabh akshekar
Hi all my name is saurabh i want create n manipulate pdf files. can anybody tell me what is pdf syntax n how it works? also best or efficient language in which i should write program please reply       regards saurabh Yahoo! Mail Use Photomail to share photos without annoying attachm

Re: [Tutor] PDF

2005-09-22 Thread Christopher Arndt
Jorge Ramirez schrieb: > > Hello, > > I would like to know how to open a pdf document using a python script. - What do you mean by "open"? - start a PDF viewer (e.g acrobar reader) from python? - or read in the file in Python and extract information from it? - What platform are you on? -

[Tutor] PDF

2005-09-22 Thread Jorge Ramirez
Hello,   I would like to know how to open a pdf document using a python script.   thanks ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] PDF and Python

2004-12-11 Thread Aztech Guy
Hi, If you only want to convert text files, this tool I wrote may be even easier than using ReportLab: http://sourceforge.net/projects/xtopdf It is based on ReportLab. You can use it both as a standalone command-line tool, to convert a single text file to PDF. Run PDFWriter.py. You can easily

Re: [Tutor] PDF and Python

2004-12-10 Thread nick
Quoting Kent Johnson <[EMAIL PROTECTED]>: > The reportlab toolkit is frequently recommended, though I haven't tried it > myself. > http://www.reportlab.org/ > > Kent Whoa ! Just has a play with that ReportLab toolkit and it looks well funky. It makes creating simple PDF's a doddle. Thanks for th

Re: [Tutor] PDF and Python

2004-12-09 Thread Alan Gauld
> Hey there. Does anyone know of a way to output PDFs with python? I have some > data that I have processed from a series of textfiles that I would like to > provide PDF format reports for.. I can't recall what its called but a couple of years ago I found a module on the Parnassus site for proces

Re: [Tutor] PDF and Python

2004-12-09 Thread Kent Johnson
The reportlab toolkit is frequently recommended, though I haven't tried it myself. http://www.reportlab.org/ Kent Jason Child wrote: Hey there. Does anyone know of a way to output PDFs with python? I have some data that I have processed from a series of textfiles that I would like to provide PDF f

[Tutor] PDF and Python

2004-12-09 Thread Jason Child
Hey there. Does anyone know of a way to output PDFs with python? I have some data that I have processed from a series of textfiles that I would like to provide PDF format reports for.. Jason Christopher Child Computer Network Services Professionals Tech Support 505-986-1669 1-877-321-9165 [EMAIL