From owner-freebsd-questions@FreeBSD.ORG Sun Dec 21 19:18:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A969616A4CE for ; Sun, 21 Dec 2003 19:18:50 -0800 (PST) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEEB443D5C for ; Sun, 21 Dec 2003 19:18:48 -0800 (PST) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (localhost [127.0.0.1]) by fw.farid-hajji.net (8.12.10/8.12.10) with ESMTP id hBM3I2fu035795; Mon, 22 Dec 2003 04:18:04 +0100 (CET) (envelope-from cpghost@cordula.ws) Date: Mon, 22 Dec 2003 04:18:03 +0100 (CET) Message-Id: <200312220318.hBM3I2fu035795@fw.farid-hajji.net> From: "Cordula's Web" To: joachim@dagerot.nu In-reply-to: <200312212315.hBLNFS425334@thunder.trej.net> (message from Joachim Dagerot on Mon, 22 Dec 2003 00:15:28 +0100) X-Mailer: Emacs-21.3.1/FreeBSD-4.9-STABLE References: <200312212315.hBLNFS425334@thunder.trej.net> cc: freebsd-questions@freebsd.org Subject: Re: Converting XSL-FO toPDF? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cpghost@cordula.ws List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2003 03:18:50 -0000 > | how can I convert an XSL-FO file to PDF? > | The XSL-FO file is generated by docbook XSL stylesheets. > | > | I've tried /usr/ports/textproc/fop, but it chokes with a > | lengthy exception dump after the first few pages; so it's > | of no use. > | > | Unfortunately, /usr/ports/print/passivetex is broken as well, > | and won't install at all. > > Have you tried the FOP java package from Apache? > (http://xml.apache.org/fop/index.html) > > I used to run that on my freeBSD and it gave me no problems. (The java > installation however wasn't a walk in the sun) /usr/ports/textproc/fop _is_ the version from Apache. I've also tried the cvs stable and devel versions, with the same result. This doesn't mean that fop doesn't work at all; it just chokes on _some_ files, including what I'm trying to feed it. Using native jdk1.3.1 with fop. Tried bigger VM resource limits and all. FOP simply doesn't cut it (yet?). I'm hacking on a work-around right now: an XSLT stylesheet that transforms (a very limited set of) DocBook markup directly to LaTeX code, then post-process with latex. It's not perfect, and a lot of boring, tedious DocBook <-> LaTeX mapping work, but at least, it works (as said, for a small DocBook subset). At the very least, it is an XSLT learning exercise... :-) Someone really should fix the passivetex port though... Thank you. -- Cordula's Web. http://www.cordula.ws/