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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: Writing PDF files Date: Thu, 10 Apr 2014 22:57:34 +0100 Message-ID: References: <362a0c08-07d1-4cf4-a2fe-d338c5423f48@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Trace: individual.net awBHtii9BW7f+PKJVuMedQ7dPkKeqqleDOT+/EQQzfIy/Xx6VY Cancel-Lock: sha1:r91W8ze+z22H/Nwzs/962dxD6Lc= User-Agent: Microsoft-Entourage/12.36.0.130206 Thread-Topic: Writing PDF files Thread-Index: Ac9VB+Cz6VRHd8bkR0Kbf6XOqRiXPA== Xref: news.eternal-september.org comp.lang.ada:19232 Date: 2014-04-10T22:57:34+01:00 List-Id: On 10/04/2014 15:59, in article li6bl5$ga8$1@dont-email.me, "J-P. Rosen" wrote: > Le 10/04/2014 15:46, gautier_niouzes@hotmail.com a écrit : >> Bill Findlay (Oct. 2011): >> # Is there a (preferably, simple) Ada library for this purpose, by any >> chance? >> >> Later: >> # I'd be happy to write my own similar package, >> # if I could find PDF documentation that did not >> # threaten to make my head explode. Existing Ada >> # code (or even C, at a pinch) might serve that purpose. >> >> Did you or someone progress on this topic ? >> Otherwise I'd have a beginning of package, just wanting to avoid reinventing >> something more advanced... > FWIW, the simplest solution for me is to generate TeX, and the PDF from > that. > > Maybe not what the OP wanted, but it works and requires only Text_IO, or > AWS' templates parser for repetitive forms. I could do as much as I wanted with EPS using Text_IO, except that I needed to seek back to the start of the output file to insert a couple of values that only became known at the end of the plot. I already had a simple POSIX subset package, so that was trivial to do as well. Have a look in http://www.findlayw.plus.com/EPS/ That code is not self-sufficient, as the packages are part of a larger program, but it should be clear enough how to extract the context-independent stuff. -- Bill Findlay with blueyonder.co.uk; use surname & forename;