Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'url:pypi': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'am,': 0.12; 'compliance?': 0.16; 'compliant,': 0.16; 'reedy': 0.16; 'wrote:': 0.18; "'python": 0.18; 'jan': 0.19; 'trying': 0.21; 'header:In- Reply-To:1': 0.22; 'suspect': 0.24; 'code': 0.25; 'problem': 0.29; 'least': 0.30; 'subject:?': 0.31; 'objects': 0.32; 'header:User- Agent:1': 0.33; 'header:X-Complaints-To:1': 0.33; 'there': 0.33; 'to:addr:python-list': 0.34; 'google': 0.35; 'regular': 0.35; 'url:python': 0.36; 'question': 0.36; 'subject:with': 0.36; 'hello,': 0.37; 'received:org': 0.38; 'url:org': 0.39; 'to:addr:python.org': 0.40; 'packages': 0.40; 'within': 0.60; 'url:%0': 0.60; 'hope': 0.61; 'kind': 0.61; 'thousands': 0.64; 'tag': 0.64; 'url:search': 0.70; 'subject:PDF': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: PDF 508 Compliance with Python? Date: Tue, 27 Dec 2011 16:29:03 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325021369 news.xs4all.nl 6895 [2001:888:2000:d::a6]:54459 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18055 On 12/27/2011 11:35 AM, Yanovsky, Boris, VHACIN wrote: > Hello, > > I am new to Python and I hope my question makes sense. We are trying to > make PDFs 508 Compliant, meaning that the objects within them have to be > tagged. The problem is that we have hundreds, and potentially thousands > of PDFs, since they are automated reports that we create on a regular basis. > > Is there a code or feature in Python that can read PDFs and tag the > objects within them for this kind of compliance? There are 3rd party python packages that can read and write .pdfs. Google 'Python pdf library' or just go to http://pypi.python.org/pypi?%3Aaction=search&term=pdf&submit=search Make sure you check out the one from ReportLab. I suspect at least one will do what you want. -- Terry Jan Reedy