Cloud background image is now supplied by the image.
This commit is contained in:
@@ -61,5 +61,13 @@ public abstract class PDFMojo extends AbstractPdfMojo {
|
|||||||
|
|
||||||
transformer.setParameter ("admon.graphics.path", imageDirectory.getAbsolutePath()+File.separator);
|
transformer.setParameter ("admon.graphics.path", imageDirectory.getAbsolutePath()+File.separator);
|
||||||
transformer.setParameter ("callout.graphics.path", calloutDirectory.getAbsolutePath()+File.separator);
|
transformer.setParameter ("callout.graphics.path", calloutDirectory.getAbsolutePath()+File.separator);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Background image file
|
||||||
|
//
|
||||||
|
File cloudSub = new File (imageDirectory, "cloud");
|
||||||
|
File coverImg = new File (cloudSub, "cover.svg");
|
||||||
|
|
||||||
|
transformer.setParameter ("cloud.api.background.image", coverImg.getAbsolutePath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,9 +7,11 @@
|
|||||||
|
|
||||||
<xsl:import href="urn:docbkx:stylesheet-orig" />
|
<xsl:import href="urn:docbkx:stylesheet-orig" />
|
||||||
<xsl:import href="urn:docbkx:stylesheet-orig/highlight.xsl" />
|
<xsl:import href="urn:docbkx:stylesheet-orig/highlight.xsl" />
|
||||||
|
|
||||||
<!-- <xsl:import href="titlefo.xsl"/> -->
|
<!-- <xsl:import href="titlefo.xsl"/> -->
|
||||||
|
|
||||||
|
<!-- Front-Cover Background Image, should be set by the plugin -->
|
||||||
|
<xsl:param name="cloud.api.background.image" select="'images/cover.svg'"/>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
XSL-FO Extensions:
|
XSL-FO Extensions:
|
||||||
|
|
||||||
@@ -177,12 +179,18 @@
|
|||||||
margin-top="1.25in"
|
margin-top="1.25in"
|
||||||
column-gap="0pt"
|
column-gap="0pt"
|
||||||
column-count="1"/>
|
column-count="1"/>
|
||||||
<fo:region-before extent="11.0in"
|
<xsl:element name="fo:region-before">
|
||||||
display-align="before"
|
<xsl:attribute name="extent">11.0in</xsl:attribute>
|
||||||
background-image="url(img/cover2.svg)"
|
<xsl:attribute name="display-align">before</xsl:attribute>
|
||||||
background-repeat="no-repeat"
|
<xsl:attribute name="background-image">
|
||||||
background-position-horizontal="0%"
|
<xsl:text>url(</xsl:text>
|
||||||
background-position-vertical="0%"/>
|
<xsl:value-of select="$cloud.api.background.image"/>
|
||||||
|
<xsl:text>)</xsl:text>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
|
||||||
|
<xsl:attribute name="background-position-horizontal">0%</xsl:attribute>
|
||||||
|
<xsl:attribute name="background-position-vertical">0%</xsl:attribute>
|
||||||
|
</xsl:element>
|
||||||
<fo:region-after
|
<fo:region-after
|
||||||
extent="0.5in"
|
extent="0.5in"
|
||||||
display-align="after"
|
display-align="after"
|
||||||
|
|||||||
Reference in New Issue
Block a user