Stephen Hurrell wrote:
There is not a lot of documentation out there about how to do this so I figured
it out myself.
awesome ;) we need more of your sort around here ;)
+ <!-- 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>
for single languages, that works. for multiple languages, you'd have to
make the matcher a bit smarter
It works! Anyways I have a few follow-on questions:
1. Is this the proper way to do this.
it's the simplest i have seen. i tried it myself recently, and added all
sorts of pipelines, but this is much easier. for now, its a good solution.
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.
i think the one at forrest should be fine. although to be honest, i
wonder why forrest pdf's are always clipping off margins (you can notice
the effect on the lenya site)
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.
i suggest you take a look at page2xhtml.xsl, specifically the url
parameter there.
4. How do I adjust the fontsizes like in forrest. Is it a small piece of jscript
that adjusts some CSS? variables?
i think yes. but note that it is buggy in some browsers, so i would
advise against using it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]