Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Basic typesetting
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-28 (17:13)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Basic typesetting
Zitat von Matthieu Dubuget <>:

> 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.

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


> 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.)