Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmbbe-0007WP-DN for pgsql-docs@arkaria.postgresql.org; Sat, 11 Mar 2017 07:38:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cmbbd-0008LT-3O for pgsql-docs@arkaria.postgresql.org; Sat, 11 Mar 2017 07:38:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cmbbc-0008LJ-LA for pgsql-docs@postgresql.org; Sat, 11 Mar 2017 07:38:24 +0000 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cmbbU-0002eV-L3 for pgsql-docs@postgresql.org; Sat, 11 Mar 2017 07:38:24 +0000 Received: by mail-lf0-x233.google.com with SMTP id j90so48504296lfk.2 for ; Fri, 10 Mar 2017 23:38:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Q9U5cgOgm/lM7vqzrnx2C1cc62FMDBNxsbzF3PP4SRY=; b=Db1SJ9DT1q5PBFWwDAxWs9J8T/LxZfdzPApY8esr6z+qV3QVHZPUxiMbrGaFsZkMS4 njH4MlIk/nKCGmOoqUdmyGWQib6ZWp2PL6bM9q7wnO5gmAZg1gXbTkwPukyrw08vJ9QF wiU4ckQWqqBaMyPRHIDg9YejxPeUY/iQrqPhuuGQdjc1Bhi/LPsOjUAeL1xIngQUNzcz ZVvCATtTuXCDWjb32ZjYTSxUBs7F9CsbhJC+WgJ/tgvY+fdU1ILn3BtWisfHMljY2rVK F1oNuvfQAYfaDdz2IkR5c3gb8VbkX4Y5rkOZzpgIT4sXR/HPblYUlmEYYxdEkjgz2/P2 mo3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Q9U5cgOgm/lM7vqzrnx2C1cc62FMDBNxsbzF3PP4SRY=; b=kHHMLRqlraMwehJoczaQ7ALA67ivfA9hXIAvDZsIy0igfC3gnikijxAPyuy1ypkTOw EMv3ZbKO3YFLY8DLv/YvEXRX840bU2mqosEGmgE8LQo46TkpDTRc2fZKU9o1dg6M6enm xeOidPD72zeeC0vRORDpeK5bHcBxJssoxR2Avt7baw6dZCYyNUGXp8JWm51CGVhTWp6P 5dy0/xeIRM2UxNm2+NWxYYCLWb0jJ9JptYCa+BWylqObDcQU1TzLkBc8ZzWG3x/jgbYb i5UN6Aessd/BDYE763jf1B51cJ9+MrrXpDDuEBqA5upd3OS60gVLUy/qLR6w8uDPdGpo 7INg== X-Gm-Message-State: AMke39mcUKBWvRcfcRW2FnUiyBmtE7tkO3CYbYdnHI3YVn5T/qHCsu301KpvrfbKMH1vEA== X-Received: by 10.25.219.213 with SMTP id t82mr5566670lfi.75.1489217895225; Fri, 10 Mar 2017 23:38:15 -0800 (PST) Received: from [1.0.0.7] ([109.196.196.93]) by smtp.gmail.com with ESMTPSA id v2sm2310280lja.31.2017.03.10.23.38.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Mar 2017 23:38:14 -0800 (PST) Subject: Re: PDF building with FOP To: Peter Eisentraut , pgsql-docs References: <8533aa6b-0f07-9d76-af3b-1f8515b1365e@2ndquadrant.com> From: Alexander Law Message-ID: <2222e787-430e-4d67-4f55-4e091b7a2f53@gmail.com> Date: Sat, 11 Mar 2017 10:38:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <8533aa6b-0f07-9d76-af3b-1f8515b1365e@2ndquadrant.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 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