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


Quoting Stephen Hurrell <[EMAIL PROTECTED]>:

>
> Hello
>
> Me:
> Debian testing ; cocoon/lenya newbie ;
> j2sdk1.4.2 ; tomcat 5.5.9-bin with compat ;
> cocoon-2.1.7-src ; lenya-1.2.3-bin
> --
>
> My objectives are to use lenya for a documentation project I am working on.
> --
>
> I apologize if this has been asked before and I did look throught the
> documentation and user lists for something to help me but there was
> nothing obvious or simple enough. The pipeline howtos are close but not
> simple enough.
>
> What I would like to know how to do in very simple terms is how to add
> PDF, rendering to the base lenya system I have running. I am hoping
> to end up with something like what's in the top right corner (font change
> & PDF icon) of:
> http://lenya.apache.org/ or
> http://forrest.apache.org/0.7/docs/howto/howto-pdf-tab.html
>
> I think that I will also have to know how to adjust the default document to
> add
> these appropriate links/icons into it so that every new document made has the
> feature. Later, I will want to have pictures in the PDF/HTML which I think
> may
> require batik.
>
>
> If there is anyone or any docco that can start me toward:
> 1. A simple outline of the process. I simply want to see it working now and
> then
> use the system to help understand how it works later.
> 2. Basic step-by-step instructions regarding what files to change and the
> changes required.
>
> I'd be happy to write complete documentation at the end of this thread.
>
> Thank You
> Stephen
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to