On 22.08.2006 11:22:44 tblhh wrote: > Hi, > > I have a question about automating FOP tasks. > 1. I have some xml-docs in a folder including subfolders and want > convert them to pdf. I guess there is a way to define a procedure so > FOP works off all files. Maybe someone knows an script, I guess I have to > write a .bat file, right? Or are there some features of FOP to do it? > I have no experience in bat scripting. So maybe someone can help.
You can try Apache Ant for that instead of normal scripts. With the help of the FOP Ant task: http://xmlgraphics.apache.org/fop/trunk/anttask.html The Ant task may not be ideal, yet, and may require some tweaking. I don't think all too many people are using it. > 2. The same problem as above quoted but how to do it via webinterface > and PHP. Read the files in folder --> create a form --> mark the > radiobuttons --> select a xsl file --> create PDF with FOP. So how to > send the selected files to fop? You might want to search the mailing list archives. I only remember this package being mentioned: http://pear.php.net/package-info.php?pacid=16 But I think it's not maintained anymore. The easiest way to call FOP is via the command-line but that's rather slow because of the JVM startup each time. But maybe it's good enough for you. Anyway, I don't work with PHP so I don't have any smart ideas. Good luck. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
