Menu

#19 [sdocbook] feature to configure FOP during PDF generation

open
nobody
None
5
2005-04-20
2005-04-20
No

Direct FOP configuration via its conf.xml is a must for
font embedding. And again, font embedding is a must for
documents in languages that falls out of the PDF
default Base-14 font set (all non-latin1 like EE).

In my case, my documents in Hungarian are rendering now
with correct Odoubleacute and Udoubleacute.

sorry for not providing CVS patches but modified files
from 1.4.1 release, but i'm having hard time with CVS.

Some stricter description follows:

FOP configuration

Maven plugin: maven-sdocbook-plugin

Modification against version: 1.4.1

Reason of modification:

Adding feature for direct configuration of FOP during
PDF generation. This feature is needed for producing
PDF documents that cannot be satisifed with standard
Adobe Base-14 Fonts because of non Latin1 encoding or
just for the need to produce pleasant PDF documents ;)

This modification allows font embedding into generated
PDF docs.

New properties: maven.sdocbook.fop.config, the location
of the fop config.xml, otherwise the plugin uses it's
own (an empty one as without it).

Attached complete Luxi TTF font family prepared for
processing (TTF fonts and FFM for FOP Font Metrics and
FOP config file to embed them in PDF).

How to use:

copy the supplied fonts dir to your
maven.sdocbook.src.dir and
set up these project properties (change the "hu"
language to appropriate):

maven.sdocbook.fo.params=-param
l10n.gentext.default.language hu -param
body.font.family 'LuxiSerif' -param
monospace.font.family 'LuxiMono' -param
title.font.family 'LuxiSans'

maven.sdocbook.resources.include = **/*.png, **/*.gif,
**/*.jpg, **/*.css **/*.ttf **/*.ffm

maven.sdocbook.fop.config =
${maven.sdocbook.src.dir}/fonts/fopconfig.xml

Good luck,
cstamas

Discussion

  • Cservenak Tamas

    Cservenak Tamas - 2005-04-20

    The modification ZIP

     
  • Cservenak Tamas

    Cservenak Tamas - 2005-04-20

    Logged In: YES
    user_id=1154447

    The fonts are too big for upload, contact me for the ZIP.

    Tx,
    ~t~

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.