I found this very interesting...
and enjoy writing on pdf file (even images) from java.
Queries on classpath.. lol try all bin lib jre jdk -classpath %PATH% google... If it doesnt help please ask me.
Tutorial for same in roseIndia is available but perhaps the import statement is wrong with them. change the import :)