« Return to Thread: Compilation Erro - ExampleXML2PDF

Compilation Erro - ExampleXML2PDF

by Kranti™ K K Parisa :: Rate this Message:

Reply to Author | View in Thread

Hi,

I am new to FOP. and i want to create PDF files using XML and XSLT that i have to show XML in HTML.
I am trying to run the sameple ExampleXML2PDF.java class.

But not able to compile that due to

Result res = new SAXResult(fop.getDefaultHandler());

seems fop.getDefaultHandler() doesn't exists.

using the code from
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup

Please suggest how could i achieve PDF generation using XML and XSLT.(I dont have FO file)

Thanks in advance.

--
Kranti K K Parisa
M: +91 - 9391 - 438 - 738
O: +91 - 4023 - 844 - 738
------------------------------------------------------------------
" world will be different, if...... "
------------------------------------------------------------------
           

 « Return to Thread: Compilation Erro - ExampleXML2PDF