I'm sorry I can't answer your questions yet, but if you have the time
you should make an entry in the wiki how to do this.
Hello.
There is not a lot of documentation out there about how to do this so I figured
it out myself.
I found:
http://mail-archives.apache.org/mod_mbox/lenya-user/200402.mbox/[EMAIL
PROTECTED]
Which talks about some articles at antennahouse to do this.
So I added the following to pubs/default/publication-sitemap.xmap
and threw xhtml2fo.xsl from http://www.antennahouse.com/XSLsample/XSLsample.htm
into the xslt sub-dir and restarted tomcat.
<map:pipeline>
<map:match pattern="**/">
<map:redirect-to uri="index.html"/>
<!--<map:redirect-to uri="{1}.html"/>-->
</map:match>
+ <!-- SPH: Attempt to add PDF support -->
+ <map:match pattern="**.pdf">
+ <map:generate src="content/{1}/index_en.xml"/>
+ <map:transform src="xslt/xhtml2fo.xsl"/>
+ <map:serialize type="fo2pdf"/>
+ </map:match>
</map:pipeline>
It works! Anyways I have a few follow-on questions:
1. Is this the proper way to do this.
2. Can I take the xhtml2fo.xsl from forrest or does anyone have a better .xsl
file that does a better job of rendering PDF like forrest.
3. Can someone post the little fragment that does the "PDF Icon" on the lenya
pages. I don't understand how to represent the current page in the default
document. Please keep it simple as you can for me.
4. How do I adjust the fontsizes like in forrest. Is it a small piece of jscript
that adjusts some CSS? variables?
Thank You
Stephen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]