Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:How': 0.09; 'endif': 0.09; 'subject:set': 0.09; 'url:github': 0.09; 'cc:addr :python-list': 0.10; '"if"': 0.16; 'loops': 0.16; 'occurrance': 0.16; 'row': 0.16; 'seperate': 0.16; 'wrote:': 0.17; 'email addr:gmail.com>': 0.20; 'libraries': 0.22; 'cc:2**0': 0.23; 'this:': 0.23; "i've": 0.23; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'looks': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'lines': 0.28; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'url:python': 0.32; 'url:listinfo': 0.32; 'certain': 0.33; 'extract': 0.33; 'excel': 0.33; 'skip:& 20': 0.33; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'pdf': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'several': 0.39; 'hello,': 0.39; 'url:mail': 0.40; 'first': 0.61; 'kind': 0.61; 'skip:\xc2 10': 0.62; 'ever': 0.63; 'choose': 0.65; '..........': 0.84; '2013': 0.84; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=eLurgPCLmOv4Mpfpho3eHbMpvKlO242hocWjOIYIIJ8=; b=gn743bfLx8o8rFLyGfQxxcgVT8dfRTEKPrPIDBUqPP0jHSy26ER42VP0xFEeDvOt8+ Svuf/vemGbKWucLhyBRBCrIlW3xg3EnG8w0KXfbHwLLjPO6dqTUKQE7vSimN8ikBk2Fb L45ZgYouFxkag67EWKiuyqCnAYYLY8WtTmHacpe5sjDNWTeFGSdEdkR6/0SoGnXYG79R FzLTk5ojQPcbtazI4xDKnVm9TfuiVL1FiLsiQ8fJ/+RJm53QuFuY7SWhtF9xtLNz025d mkcGnolXLWvvgVaYojSsiU6DcHydcf5+TvS1eZYU/73E96wEvCjdq0uRa0dkYWPT7Dge iOQQ== MIME-Version: 1.0 X-Received: by 10.220.119.147 with SMTP id z19mr2516393vcq.69.1363700760302; Tue, 19 Mar 2013 06:46:00 -0700 (PDT) In-Reply-To: References: Date: Tue, 19 Mar 2013 09:46:00 -0400 Subject: Re: How to extract certain set of lines from PDF From: Joel Goldstick To: adamnizar01@gmail.com Content-Type: multipart/alternative; boundary=bcaec54d4cfc660fe004d847532f Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 74 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363700763 news.xs4all.nl 6966 [2001:888:2000:d::a6]:52099 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41492 --bcaec54d4cfc660fe004d847532f Content-Type: text/plain; charset=UTF-8 On Tue, Mar 19, 2013 at 9:16 AM, wrote: > Hello, > > I need to extract certain set of lines from PDF > Ex:- > IF(......) > .......... > .......... > IF(.....) > ........... > ........... > ENDIF > ENDIF > > I need to copy entire lines from first "IF" till last "ENDIF".and extract > it to seperate row of excel sheet.when ever a new occurrance of this kind > of IF loops are found out. > -- > http://mail.python.org/mailman/listinfo/python-list > You might start with this: http://knowah.github.com/PyPDF2/ I've never had to read pdf files, but it looks like there are several libraries to choose from -- Joel Goldstick http://joelgoldstick.com --bcaec54d4cfc660fe004d847532f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Tue, Mar 19, 2013 at 9:16 AM, <adamnizar01@gmail.com&g= t; wrote:
Hello,

I need to extract certain set of lines from PDF
Ex:-
IF(......)
..........
..........
=C2=A0 =C2=A0IF(.....)
=C2=A0 =C2=A0...........
=C2=A0 =C2=A0...........
=C2=A0 =C2=A0ENDIF
ENDIF

I need to copy entire lines from first "IF" till last "ENDIF= ".and extract it to seperate row of excel sheet.when ever a new occurr= ance of this kind of IF loops are found out.
--
http://mail.python.org/mailman/listinfo/python-list

You m= ight start with this: http://k= nowah.github.com/PyPDF2/

I'= ve never had to read pdf files, but it looks like there are several librari= es to choose from


--
--bcaec54d4cfc660fe004d847532f--