Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:How': 0.09; 'endif': 0.09; 'subject:set': 0.09; 'to:addr:comp.lang.python': 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; 'libraries': 0.22; 'this:': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'looks': 0.26; 'am,': 0.27; 'cc:addr:gmail.com': 0.27; 'lines': 0.28; 'url:mailman': 0.29; 'this.': 0.29; 'url:python': 0.32; 'file': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'certain': 0.33; 'extract': 0.33; 'excel': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'thank': 0.36; 'pdf': 0.37; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'several': 0.39; 'hello,': 0.39; 'url:mail': 0.40; 'your': 0.60; 'from:no real name:2**0': 0.60; 'first': 0.61; 'kind': 0.61; 'ever': 0.63; 'choose': 0.65; '..........': 0.84; '2013': 0.84; 'joel': 0.91 X-Received: by 10.50.187.133 with SMTP id fs5mr208343igc.12.1363701713264; Tue, 19 Mar 2013 07:01:53 -0700 (PDT) Newsgroups: comp.lang.python Date: Tue, 19 Mar 2013 07:01:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=199.63.142.252; posting-account=GeTYGQoAAABfBC2zuW1DVIGJ9smkbUcQ References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 199.63.142.252 MIME-Version: 1.0 Subject: Re: How to extract certain set of lines from PDF From: razinzamada@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "python-list@python.org" , adamnizar01@gmail.com 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: , Message-ID: Lines: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363701722 news.xs4all.nl 6879 [2001:888:2000:d::a6]:59600 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41497 Thank you for your response,in case if its a word file how could i do this. On Tuesday, March 19, 2013 7:16:00 PM UTC+5:30, Joel Goldstick wrote: > On Tue, Mar 19, 2013 at 9:16 AM, wrote: >=20 > Hello, >=20 >=20 >=20 > I need to extract certain set of lines from PDF >=20 > Ex:- >=20 > IF(......) >=20 > .......... >=20 > .......... >=20 > =A0 =A0IF(.....) >=20 > =A0 =A0........... >=20 > =A0 =A0........... >=20 > =A0 =A0ENDIF >=20 > ENDIF >=20 >=20 >=20 > 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. >=20 > -- >=20 > http://mail.python.org/mailman/listinfo/python-list >=20 >=20 >=20 > You might start with this: http://knowah.github.com/PyPDF2/ >=20 >=20 > I've never had to read pdf files, but it looks like there are several lib= raries to choose from >=20 >=20 >=20 >=20 > --=20 >=20 >=20 > Joel Goldstick > http://joelgoldstick.com