comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Writing PDF files
Date: Mon, 17 Oct 2011 17:00:12 -0500
Date: 2011-10-17T17:00:12-05:00	[thread overview]
Message-ID: <j7i8he$vm8$1@munin.nbi.dk> (raw)
In-Reply-To: CAC12F97.FDDC%yaldnif.w@blueyonder.co.uk

"Bill Findlay" <yaldnif.w@blueyonder.co.uk> wrote in message 
news:CAC12F97.FDDC%yaldnif.w@blueyonder.co.uk...
>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.

When we had this requirement for the Ada Standard, I ended up choosing to 
create an RTF file (rather than DOC or attempt to create PDFs directly). 
Part of the reason for that was the lack of documentation of exactly what is 
in a PDF file (I think that is more available nowdays, back then Adobe was 
charging $$$ for that information), and another part is the embedded fonts 
in the PDF (very hard to emulate).

The RTFs our tool produces were designed for Microsoft Office 97 (and work 
reasonably well in Office 2003); they work in OpenOffice as well (but as 
might be expected, there are some formatting glitches -- and RM takes about 
an hour to open, compared to 30 seconds on Office).

The RTFs then go through an old version of Acrobat. (If I could get 
OpenOffice formatting to work consistently, I'd use it's built-in converter 
for that job.

RTF is relatively easy for a program to create (it is a plain text format), 
and Microsoft has extensive documentation on how it works. Or, you could 
just "borrow" part of the RM formatting tool (it will have a GPL license the 
next time it gets updated, which should be this week).

                                     Randy.







  parent reply	other threads:[~2011-10-17 22:00 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17  0:04 Writing PDF files Bill Findlay
2011-10-17  0:27 ` Robin Vowels
2011-10-17  2:21   ` Bill Findlay
2014-04-16  7:50     ` robin.vowels
2011-10-17  2:18 ` RasikaSrinivasan@gmail.com
2011-10-17  2:31   ` Bill Findlay
2011-10-17  8:44     ` Gautier write-only
2011-10-17  7:36 ` Dmitry A. Kazakov
2011-10-17  8:31 ` Manuel Collado
2011-10-17 17:26 ` Yannick Duchêne (Hibou57)
2011-10-17 22:00 ` Randy Brukardt [this message]
2011-10-17 22:23   ` Bill Findlay
2011-10-17 23:00     ` Shark8
2011-10-18  8:17     ` Simon Wright
2011-10-18 10:03       ` Yannick Duchêne (Hibou57)
2011-10-18 10:14         ` Yannick Duchêne (Hibou57)
2011-10-18 11:24           ` Simon Wright
2011-10-18 12:07             ` Yannick Duchêne (Hibou57)
2011-10-18 11:46           ` Jeffrey Creem
2011-10-18 14:03             ` Yannick Duchêne (Hibou57)
2011-10-20 23:22       ` Bill Findlay
2011-10-21  6:03         ` Simon Wright
2011-10-21  7:22           ` Yannick Duchêne (Hibou57)
2011-10-21  7:31             ` Ludovic Brenta
2011-10-21  9:43               ` Yannick Duchêne (Hibou57)
2014-04-10 13:46 ` gautier_niouzes
2014-04-10 14:59   ` J-P. Rosen
2014-04-10 19:07     ` gautier_niouzes
2014-04-10 20:33       ` Dmitry A. Kazakov
2014-04-13  8:46       ` gautier_niouzes
2014-04-10 21:57     ` Bill Findlay
2014-04-10 22:52     ` Randy Brukardt
2014-04-11  4:41       ` Vadim Godunko
2014-04-10 17:03   ` Natasha Kerensikova
2014-04-10 18:59     ` gautier_niouzes
2014-04-10 21:47   ` Bill Findlay
2014-04-10 23:27     ` Jeffrey Carter
2014-04-11 19:16       ` Bill Findlay
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox