support for PDF viewing of XML documents
Brought to you by:
ovidiu
From: Ovidiu P. <ov...@xe...> - 2001-08-17 07:03:37
|
Jeff, I finally had some time to work on the PDF viewing support (I was really busy at work with a deadline on the project I work on). There is now a new menu item in the top level XSLT menu, "Apply XSLT, View PDF". The action applies an XSLT transformation on the input XML document, then calls the Apache FOP processor on it to generate a PDF document. After the PDF document is generated, a PDF viewer of choice is invoked to show the results. You can specify your favorite PDF viewer through customization. By default xpdf is setup, but AcrobatReader is another choice. If you have a different viewer than these two, you can still enter it in the customization. Everything you need to generate PDFs is included in the package, you don't need anything additional. I placed an build package at ftp://xslt-process.sourceforge.net/pub/xslt-process/xslt-process-20010816.tar.gz I have tested this on Linux, with xpdf and AcrobatReader and it works fine for me. I've tested with the two files in the tests/fo/ directory, an XML and an XSLT file taken from the FOP 0.20.1 distribution. To test, associate the XML with the XSLT file, and invoke C-c C-x p. The testing I've done is minimal, so please let me know if this works for you with some more complex files. I would also be interested in somebody testing this on Windows too, I will test it anyway sometime these days, but more testers are better than one. If everything works fine, I will make a new release with this functionality over the week-end. Regards, -- Ovidiu Predescu <ov...@cu...> http://orion.nsr.hp.com/ (inside HP's firewall only) http://sourceforge.net/users/ovidiu/ (my SourceForge page) http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff) |