pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Law <exclusion@gmail.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-docs <pgsql-docs@postgresql.org>
Subject: Re: PDF building with FOP
Date: Sat, 11 Mar 2017 10:38:13 +0300
Message-ID: <2222e787-430e-4d67-4f55-4e091b7a2f53@gmail.com> (raw)
In-Reply-To: <8533aa6b-0f07-9d76-af3b-1f8515b1365e@2ndquadrant.com>
References: <8533aa6b-0f07-9d76-af3b-1f8515b1365e@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

Hello Peter,

11.03.2017 05:25, Peter Eisentraut wrote:
> The questions for those who are building PDFs are
>
> - Can you make the build work?
>
> - Does the output look OK?
Yes, we use FOP build to generate all the PDF's for current versions 
(starting with 9.5).
Output looks ok, though we need to use extra fop-config.xml with font 
substitutions to get Russian letters in the translated docs
(e.g. http://repo.postgrespro.ru/doc/pgsql/9.6/ru/postgres-A4-fop.pdf).
> Some tips:  FOP is extremely memory hungry.  You will probably have to
> fiddle with some Java memory settings to make it work.  One way is by
> edting ~/.foprc and set something like
>
> FOP_OPTS='-Xmx1200m'          # fop upstream binary installation
> ADDITIONAL_FLAGS='-Xmx1200m'  # centos/fedora
> JAVA_ARGS='-Xmx1200m'         # debian
>
> It looks like you need at least -Xmx1000m, depending on the fop version.
>   More memory can make things faster.  (Some of this could go into the
> documentation.)
Yes, we added JAVA_ARGS=-Xmx4096m to get the docs built on Ubuntu 14.04 
(with FOP Version 1.1)
We also haven't encountered new problems on Ubuntu 16.04 (with FOP 
Version 2.1). (This version prints some additional warnings, but the 
resulting PDF looks valid).

Best regards,
Alexander



-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (6+ messages)  latest in thread

Message-ID: <2222e787-430e-4d67-4f55-4e091b7a2f53@gmail.com>
Permalink:  ../2222e787-430e-4d67-4f55-4e091b7a2f53@gmail.com/
Also on:    postgresql.org/message-id/2222e787-430e-4d67-4f55-4e091b7a2f53@gmail.com

 · 

reply

Reply instructions:

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

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: exclusion@gmail.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: PDF building with FOP
  In-Reply-To: <2222e787-430e-4d67-4f55-4e091b7a2f53@gmail.com>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox