From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,af1a826b849365a8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!postnews.google.com!s3g2000vbf.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: PDF to JPEG Date: Mon, 21 Mar 2011 16:47:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: <090b0075-7652-40a4-acd2-eb991f09260a@s3g2000vbf.googlegroups.com> References: <312b414f-24ba-43fc-8f37-eec78e8cb631@m7g2000vbq.googlegroups.com> <77d0e25b-a50c-4416-9b3e-415b7d735e6b@w7g2000pre.googlegroups.com> NNTP-Posting-Host: 85.1.219.135 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1300751267 26716 127.0.0.1 (21 Mar 2011 23:47:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 Mar 2011 23:47:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s3g2000vbf.googlegroups.com; posting-host=85.1.219.135; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.17) Gecko/20110123 SeaMonkey/2.0.12,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19323 Date: 2011-03-21T16:47:47-07:00 List-Id: On Mar 21, 3:58=C2=A0pm, Ho=C3=A0ng =C4=90=C3=ACnh Long wrote: > Yes! I must parse the file. That's the problem. The PDF format seems to be a mixture of text (including main tokens) and binary. When Googl'ing "PDF parser" I come across a parser in Python which is fairly readable: http://blog.didierstevens.com/programs/pdf-tools/ Typically I'd take it as a basis if I wanted to make an Ada version. NB: for the LZW and Deflate decoders, there is already an Ada implementation in Zip-Ada. No need to translate... Have fun Gautier