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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6071f84396b8f5aa X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.33.161 with SMTP id s1mr23421138pbi.2.1318818710234; Sun, 16 Oct 2011 19:31:50 -0700 (PDT) Path: d5ni19362pbc.0!nntp.google.com!news2.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: Writing PDF files Date: Mon, 17 Oct 2011 03:31:44 +0100 Message-ID: References: Mime-Version: 1.0 X-Trace: individual.net dHmLk6SlsF/U2TjkR3Qu4ggrBiyxdFAaqoAQoPAjXGokAHO9ab Cancel-Lock: sha1:JLW+7uqVGTIYLGUmfgL3+x7nX0E= User-Agent: Microsoft-Entourage/12.28.0.101117 Thread-Topic: Writing PDF files Thread-Index: AcyMdOj+CDMRNPA0pUCxwoIokUGP9w== Xref: news2.google.com comp.lang.ada:13989 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Date: 2011-10-17T03:31:44+01:00 List-Id: On 17/10/2011 03:18, in article f571bb24-b0a9-44f7-855b-adffe7cbddb8@o19g2000vbk.googlegroups.com, "RasikaSrinivasan@gmail.com" wrote: > On Oct 16, 8:04�pm, Bill Findlay wrote: >> I am writing a KDF9 emulator in Ada 2005, and have reached the stage of >> simulating a graph-plotter device. �I'm hoping to do this by converting >> KDF9 plot commands into a PDF file, but am having difficulty finding a >> useful source of info on what a minimal PDF graphics file should contain. >> >> Is there a (preferably, simple) Ada library for this purpose, by any chance? >> >> BTW I'm using MacOS X Lion. > > Search for a library Haru which helps you create pdf files. It does > support adding graphics files. might give you adequate info. I have > built an ada interface to this as well. Thanks for the suggestion. I am thinking in these terms because we did exactly this to let beginners produce graphical output back in 1996, which was when we started teaching Ada 95 (with GNAT running on Sun servers). My then colleague Satnam Singh wrote a small Ada library, more less from scratch, that turned simple graphical commands into PDF. When we started using PCs to deliver the lab, we went over to AdaGIDE and Satnam's code was forgotten. 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. -- Bill Findlay with blueyonder.co.uk; use surname & forename;