Hi
I have downloaded the latest iText-2.0.1, somehow I got problems with
Watermark and PdfPublicKeySecurityHandler.
For PdfPublicKeySecurityHandler, I had to go to bouncycastle
(http://www.bouncycastle.org) and get their jar in order for me to keep the
program running (the setEncryption was the one complaining)
For Watermark, it was a bigger issue (I am actually new to itext, just
started learning it from yesterday), so it took me 3 hours before I found out
the Watermark was actually missing from the source (may be from the jar too, I
don't know). The error message that I got was
Watermark cannot be resolved to a type
10:
11: // watermark
12: Image image=Image.getInstance("C:/Program Files/Apache Software
Foundation/Tomcat 6.0/webapps/myapp/WEB-INF/sample36.jpg");
13: Watermark watermark=new
Watermark(image,((PageSize.A4).width()-image.plainWidth())/2,((PageSize.A4).height()-image.plainHeight())/2);
Anyway, at the end, I just went to
http://sourceforge.net/project/showfiles.php?group_id=15255 and downloaded
itext1.4.8 , Watermark was there, I grabbed it and compiled it and it works. I
think it's also missing in iText2.0.0.
May be I missed something (when I was setting up iText), I don't know but if
anyone encountered similar problems, may be they can try what I did, thx.
Adrian
______________________________________
===================================================================
[EMAIL PROTECTED]
http://adimages.sina.com.hk/Dict_Footer_0704_v3.html
[EMAIL PROTECTED]
http://mobile.sina.com.hk/
·Qn³Ì·s¤â¾÷©wÁʪ«Â§¨é¡H¥ò¦³¼Æ½X¬Û¾÷µ¥§A©ð¡I
http://adawards.sina.com.hk/4/form.html
===================================================================
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/