caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matthieu Dubuget <matthieu.dubuget@gmail.com>
To: Oliver Bandel <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Basic typesetting
Date: Sun, 28 Oct 2007 21:28:38 +0100	[thread overview]
Message-ID: <4724F0F6.7090603@gmail.com> (raw)
In-Reply-To: <1193591609.4724c3394a824@webmail.in-berlin.de>


Oliver Bandel a écrit :
> Zitat von Matthieu Dubuget <matthieu.dubuget@gmail.com>:
>
>> Hello,
>>
>> I just tried CamlPDF, which is very nice for what I want to do:
>> just export one simple page of text into pdf.
> [...]
>
> Oh, I didn't heard of CamlPDF before.
> If I found the correct page, then it is a pre-release.
> But there is no date on the page, so I don't know if it's up to date.


Well, it was announced some time ago on the list by John Whitington,
from http://www.coherentgraphics.co.uk/. In recent announce, he also
wrote:

>> A new version of CamlPDF will be released soon, reflecting the updated
>> facilities used  by the commercial tools.


>
>
>> For this kind of simple thing, I'd really like to get rid of the big,
slow,
>> and difficult to install fop.
>
> fop?

Copied from FOP web page:
Apache FOP (Formatting Objects Processor) is a print formatter driven by
XSL formatting objects (XSL-FO) and an output independent formatter. It
is a Java application that reads a formatting object (FO) tree and
renders the resulting pages to a specified output. Output formats
currently supported include PDF, PS, PCL, AFP, XML (area tree
representation), Print, AWT and PNG, and to a lesser extent, RTF and
TXT. The primary output target is PDF.

That's the way my little software works. It generates an .fo file and
transforms it by calling fop through Sys.command. A little heavy for
one simple page...

I also could have produced one PostScript version before a pstopdf call.
But direct .pdf production is something I want to learn ;-)

>
>
>> But in order to put text objects on page at the right place, I would
>> like to compute
>> their size. Is there any standard way to compute it?
>
> Postscript has a pathbbox-operator, which gives you back
> the bounding box of the current path; PDF seems not to have
> such an operator. At least I could not find an aequivalent thing
> in the last minutes, where I browsed through the PDF-Reference Manual.
>
> So, possibly one has to calculate the size by itself?!
> (So, if CamlPDF does not provide it, I see no solution to that problem
> right now.)

Thanks Oliver.

I will certainly have to parse AFM files in order to find font metrics
and use them in order to compute the dimensions I need, then...

>
> Ciao,
>    Oliver

Guten Abend


  reply	other threads:[~2007-10-28 20:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-28 14:14 Matthieu Dubuget
2007-10-28 17:13 ` [Caml-list] " Oliver Bandel
2007-10-28 20:28   ` Matthieu Dubuget [this message]
2007-10-28 21:42     ` michael.le_barbier
2007-10-29  8:52       ` Oliver Bandel
2007-10-30 15:43         ` Matthieu Dubuget
2007-10-30 17:43           ` Jon Harrop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4724F0F6.7090603@gmail.com \
    --to=matthieu.dubuget@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=oliver@first.in-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).