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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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-7-bit Received: by 10.68.21.229 with SMTP id y5mr24307971pbe.1.1318836989342; Mon, 17 Oct 2011 00:36:29 -0700 (PDT) Path: d5ni20504pbc.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Writing PDF files Date: Mon, 17 Oct 2011 09:36:54 +0200 Organization: cbb software GmbH Message-ID: <1kr4tyunwtep6$.1h2m3s5hjr8hr.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news2.google.com comp.lang.ada:13995 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-10-17T09:36:54+02:00 List-Id: On Mon, 17 Oct 2011 01:04:23 +0100, 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? You can use cairo, a vector graphic library. Cairo supports PDF surfaces. Starting from GtkAda 2.18, cairo is a part of GtkAda. There is also thicker bindings cairoada, which is more comfortable to use. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de