From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 852C1BC6B for ; Sun, 28 Oct 2007 21:27:45 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAOqNJEfRVYa6kmdsb2JhbACOYgIBAQcEBCmBKQ X-IronPort-AV: E=Sophos;i="4.21,339,1188770400"; d="scan'208";a="18706288" Received: from discorde.inria.fr ([192.93.2.38]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Oct 2007 21:27:45 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l9SKRivT004983 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 28 Oct 2007 21:27:45 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAOqNJEfRVYa6kmdsb2JhbACOYgIBAQcEBCmBKQ X-IronPort-AV: E=Sophos;i="4.21,339,1188770400"; d="scan'208";a="18706287" Received: from mu-out-0910.google.com ([209.85.134.186]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Oct 2007 21:27:44 +0100 Received: by mu-out-0910.google.com with SMTP id w9so1732152mue for ; Sun, 28 Oct 2007 13:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=1fc+KyjgxUHdwW7CJGJjMAm1u8Qarj/S1MTskQ/Xziw=; b=aEcY2ASBSEw3bjeH8eqwjY5YKIhdAEepeLbCAK0nZGZkNkesz+HJW8YBAYdaiFDPs4oVuSk19f0oT/Q2qqflF8kotXpLBVPAR88vRKfOIjSmROSOjOG4CQMc+QzeOvUCbx7W5L1CtyEO3NLzpeGnyKw735JDf1T0Z1buvsUR2Z8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=tBJadSo5VS7OqHbuqEZ9IQzu/+XsTtgFN6gM+9G3KjEcApyDcwX7mFZ0FL2P3LQGcPgUMyIa1WpZJ3mZQQDe9AvTYbAnIA9DzpiOHm8zXYtCMhnDtYdSY5cRY/WVyf8qWMHP8RnoAkEx601MRrUkUhB3K1aKFt2FiEF1enCOx5A= Received: by 10.86.51.2 with SMTP id y2mr4193636fgy.1193603263342; Sun, 28 Oct 2007 13:27:43 -0700 (PDT) Received: from ?192.168.1.10? ( [84.97.66.60]) by mx.google.com with ESMTPS id i5sm12326400mue.2007.10.28.13.27.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Oct 2007 13:27:40 -0700 (PDT) Message-ID: <4724F0F6.7090603@gmail.com> Date: Sun, 28 Oct 2007 21:28:38 +0100 From: Matthieu Dubuget Reply-To: matthieu.dubuget@gmail.com User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Oliver Bandel Cc: caml-list@inria.fr Subject: Re: [Caml-list] Basic typesetting References: <9f09a07a0710280714h6617fcc6s8647ef9ba077c30b@mail.gmail.com> <1193591609.4724c3394a824@webmail.in-berlin.de> In-Reply-To: <1193591609.4724c3394a824@webmail.in-berlin.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at discorde with ID 4724F0C0.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 bandel:01 pre-release:01 renders:01 browsed:01 wrote:01 oliver:01 oliver:01 caml-list:01 postscript:01 postscript:01 font:97 Oliver Bandel a écrit : > 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. 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