You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2009/04/08 14:41:56 UTC
svn commit: r763219 - in /maven/plugins/trunk/maven-pdf-plugin/src/site:
apt/usage.apt resources/ resources/pdf-config.xml
Author: ltheussl
Date: Wed Apr 8 12:41:56 2009
New Revision: 763219
URL: http://svn.apache.org/viewvc?rev=763219&view=rev
Log:
Document how to override layout properties (MPDF-5)
Added:
maven/plugins/trunk/maven-pdf-plugin/src/site/resources/
maven/plugins/trunk/maven-pdf-plugin/src/site/resources/pdf-config.xml (with props)
Modified:
maven/plugins/trunk/maven-pdf-plugin/src/site/apt/usage.apt
Modified: maven/plugins/trunk/maven-pdf-plugin/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/site/apt/usage.apt?rev=763219&r1=763218&r2=763219&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/site/apt/usage.apt (original)
+++ maven/plugins/trunk/maven-pdf-plugin/src/site/apt/usage.apt Wed Apr 8 12:41:56 2009
@@ -100,4 +100,29 @@
The <<<meta>>> information is used for the pdf cover page, while the
<<<toc>>> generates a Table of Contents and specifies the order of
- files to include in the pdf.
\ No newline at end of file
+ files to include in the pdf.
+
+* Configuration properties
+
+ All the layout properties that are used for the pdf conversion are read
+ from a default configuration file. The properties in this file may be
+ overridden by using a custom configuration file <<<pdf-config.xml>>>
+ located in <<<src/sire/resources/>>>.
+
+ The format of this file has to be exactly the same as the original
+ {{{http://svn.apache.org/repos/asf/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/fo-styles.xslt}default configuration file}}.
+ However, you only need to specify the properties that you want to override,
+ <e.g.> to change the font size of pre-formatted text, you could use:
+
++-----
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
+
+ <xsl:attribute-set name="body.pre" use-attribute-sets="base.pre.style">
+ <xsl:attribute name="font-size">8pt</xsl:attribute>
+ </xsl:attribute-set>
+
+</xsl:stylesheet>
++-----
Added: maven/plugins/trunk/maven-pdf-plugin/src/site/resources/pdf-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/site/resources/pdf-config.xml?rev=763219&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/site/resources/pdf-config.xml (added)
+++ maven/plugins/trunk/maven-pdf-plugin/src/site/resources/pdf-config.xml Wed Apr 8 12:41:56 2009
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
+
+ <xsl:attribute-set name="body.pre" use-attribute-sets="base.pre.style">
+ <xsl:attribute name="font-size">8pt</xsl:attribute>
+ </xsl:attribute-set>
+
+</xsl:stylesheet>
Propchange: maven/plugins/trunk/maven-pdf-plugin/src/site/resources/pdf-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-pdf-plugin/src/site/resources/pdf-config.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"