added pdf stuff
authorjohn <john>
Sat, 28 Sep 2002 14:30:36 +0000 (14:30 +0000)
committerjohn <john>
Sat, 28 Sep 2002 14:30:36 +0000 (14:30 +0000)
templates-dist/producer/producers.xml

index c4ede9b..869db63 100755 (executable)
               destination="${config.storageRoot}/$pathprefix/${data.content.date.formatted.yyyy}/${data.content.date.formatted.MM}/${data.content.id}.shtml"/>
         </Language>
 
-        <MarkContent key="data.content"/>            
+        <MarkContent key="data.content"/>               
+    <!-- uncomment the following if you want to make a pdf version of each article  -->
+    <!-- also, you could move it up into the language tag and adjust the paths accordingly
+         to make pdfs in each language -->
+    <!-- PDFPreFormat splits up the text and mixes images in with it -->
+    <!--<PDFPreFormat key="article.content" numLinesBetweenImages="3" charWidthCM="0.19" pixelWidthCM="0.035" contentAreaWidthCM="16" lineHeightCM="0.5" />-->
+    <!-- Regular Generate Tag is used to produce an fo file(but using the split-up content -->
+    <!--<Generate generator="/producer/printablecontent.template" destination="${config.storageRoot}/${article.content.date.formatted.yyyy}/${article.content.date.formatted.MM}/${article.content.id}.fo"/>-->
+    <!-- Finally, PDFGenerate turns the fo file into a pdf.  You could leave this step out 
+    and generate pdfs on the fly using the getpdf OpenMir module as well.  Make sure to fill in the real path on the stylesheet attribute-->
+    <!--<PDFGenerate generator="${config.storageRoot}/${article.content.date.formatted.yyyy}/${article.content.date.formatted.MM}/${article.content.id}.fo" destination="${config.storageRoot}/${article.content.date.formatted.yyyy}/${article.content.date.formatted.MM}/${article.content.id}.pdf" stylesheet="/real/path/goes/here/templates/producer/html2fo.xsl" />-->
       </Enumerate>
     </body>
   </producer>