This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: No PDF draft watermark included with xsltproc
- From: Steinar Bang <sb at dod dot no>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 31 Jul 2003 12:38:28 +0200
- Subject: [docbook-apps] Re: No PDF draft watermark included with xsltproc
- Cancel-lock: sha1:NPBuROkr8MSW5OthFHAq0oHjHBY=
- Organization: Probably a good idea
- References: <873cgocrwu.fsf@home.lan> <20030730083603.C5014@sco.com>
>>>>> Bob Stayton <bobs@sco.com>:
> It works for me, although the watermark image isn't scaled very
> well. The word "DRAFT" is scaled too large and gets cut off (XEP
> gets it right).
Does the watermark image have to be a pixmap? Or can it be in a
scalable format, eg. SVG or EPS (a handwritten image wouldn't be many
lines in either), as long as the FO->PDF translator can handle the
format?
> The only tools difference is that I'm using versions 2.5.7 of
> libxml2 and 1.0.30 of libxslt.
I tried it on a debian testing/unstable (sarge) system, with libxml2
2.5.7 and libxslt 1.0.30, and I still didn't get the watermark.
> The fo output includes:
> <fo:region-body
[snip!]
> background-image="url(http://docbook.sourceforge.net/release/images/draft.png)" background-attachment="fixed"
[snip!]
My .fo files didn't contain the text "background-image".
I then looked at the settings in my customization layer:
<!-- Autogenerate section numbers -->
<xsl:param name="section.autolabel" select="1"/>
<!-- HTML Toc level (both chunked and unchunked) -->
<xsl:param name="toc.section.depth">5</xsl:param>
<xsl:param name="paper.type" select="'A4'" />
<xsl:param name="fop.extensions" select="1" />
Removing the paper.type parameter didn't make any difference, but
removing the fop.extensions did.
Now it works, even on RH8 with the older libxml2/libxslt, but with the
same scaling problems you mentioned. I only get half the "F", and
lose the "T" completely.
Unfortunately removing fop.extensions also lost me the navigational
treeview when viewing the document in acroread.
Is there a way to get both?
Thanx!
- Steinar
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org