This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Re: No PDF draft watermark included with xsltproc


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]