Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deXWS-0002A8-R5 for pgsql-docs@arkaria.postgresql.org; Mon, 07 Aug 2017 02:12:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1deXWS-000435-3G for pgsql-docs@arkaria.postgresql.org; Mon, 07 Aug 2017 02:12:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1deXWR-00042e-Hv for pgsql-docs@postgresql.org; Mon, 07 Aug 2017 02:11:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1deXWO-0006II-Cd for pgsql-docs@postgresql.org; Mon, 07 Aug 2017 02:11:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v772Bspc001877; Sun, 6 Aug 2017 22:11:54 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-docs Subject: Re: PDF building with FOP In-reply-to: <12368.1489210302@sss.pgh.pa.us> References: <8533aa6b-0f07-9d76-af3b-1f8515b1365e@2ndquadrant.com> <12368.1489210302@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 11 Mar 2017 00:31:42 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1875.1502071914.1@sss.pgh.pa.us> Date: Sun, 06 Aug 2017 22:11:54 -0400 Message-ID: <1876.1502071914@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Awhile back I wrote: > Peter Eisentraut writes: >> The questions for those who are building PDFs are >> - Can you make the build work? > * On RHEL 6: the available version of fop is 0.95, and it just fails > completely. It looks like constructs cause a > NullPointerException in some cases. I tried installing fop 1.0 > from back-rev Fedora SRPMs, but ran into dependency hell and gave > up for the time being. I didn't look into whether the binary > downloads available from apache.org would work. I got around to trying the binary-download solution today. The binary tarballs available from http://www.apache.org/dist/xmlgraphics/fop/binaries/ are definitely recommendable: they contain essentially a bunch of jars and an invocation shell script, and they work great even with RHEL6's none-too-shiny-new JRE. You just need to unpack the tarball someplace and put a symlink to its included "fop" script into your PATH. I initially tried the fop-2.0 tarball, and got a NullPointerException on today's HEAD docs, which seems odd because the version of fop 2.0 included in Fedora 25 works. I suppose Red Hat is carrying some patches in their distribution, but I didn't look more closely. However, the fop-2.2 tarball works just fine. (No need for tweaking memory settings either, although it does bloat to multiple GB while running.) So we could recommend 2.2 or later for people going this route. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs