Not able to impliment "Export to PDF" in java

I was trying to implement in Export to PDF in Java, but no success. The downloadable zip(Java package - was not much helpful, as I don’t know to call which function.
Please help.

a) you can use online service

b) as for grid-pdf-java package
It contains a servlet which you can map to some url and use this url in toPDF command of grid


<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' ''> <web-app> <servlet> <servlet-name>PDFGenerator</servlet-name> <servlet-class>PDFGenerator</servlet-class> </servlet> <servlet-mapping> <servlet-name>PDFGenerator</servlet-name> <url-pattern>/generate</url-pattern> </servlet-mapping> </web-app>