1T3XT info wrote: > Scott Lusebrink wrote: >> Also can someone provide me an example of how to set a form field as >> readonly, I think I need to use setFieldProperty but I don't know what >> name to put. The PdfFormField.FLAG and FF is an int so those must be >> values for the property name. > > There's a code snippet on p507 of "iText in Action" that shows > you how to do it.
FINALLY! I've added all the book samples to the new 1T3XT site: http://1t3xt.info/examples/itext-in-action.php Now we'll be able to refer to an actual example instead of to a page number: http://1t3xt.info/examples/browse/?page=example&id=248 Of course you'll always need the book to find out what everything means. You'll even find all the stuff necessary to run the examples in SVN: http://itext.svn.sourceforge.net/viewvc/itext/trunk/examples/ (except for the MS fonts; you'll need those already on your OS). All examples were tested on Windows Vista AND Fedora Linux, so please don't ask any dumb questions about them (for instance: I've tried that example and 'it doesn't work') All these examples work for me! This being said: I've just uploaded all the examples and I haven't had the time to check if all PDFs look OK (I've used scripts to compile and execute the code). on Vista I used: http://itext.svn.sourceforge.net/viewvc/itext/trunk/examples/all.bat on Fedora Linux I used: http://itext.svn.sourceforge.net/viewvc/itext/trunk/examples/all.sh I did the trick with the "c:" directory I mentioned before to make sure the examples with the MS fonts work. I've even provided a mySql script you can use to create these scripts: http://itext.svn.sourceforge.net/viewvc/itext/trunk/examples/resources/databases/itext_examples.sql I've been working on all this for weeks, but due to the fact that I had to answer the same questions over and over again, I had to postpone publishing the site (and it's still a work under construction). And now I'm going to watch the new episode of Heroes (2nd season in Belgium). -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar