//add JavaScript functions StringBuffer javaScriptSection = new StringBuffer(); javaScriptSection.append("function load() {"); javaScriptSection.append("var f=this.getField(\"test\"); f.print = false;"); javaScriptSection.append("}"); document.add(new Header(HtmlTags.JAVASCRIPT, javaScriptSection.toString())); document.setJavaScript_onLoad ("load()"); document.open(); Chunk chunk= new Chunk("\n\n text",f9); chunk.setMarkupAttribute("name","test"); Phrase ph = new Phrase(chunk); document.add(ph); PdfAction jAction = PdfAction.javaScript("this.print(false);\r", pdfWriter); pdfWriter.addJavaScript(jAction);
document.close(); Field "test" in the code above still being printed How can I prevent this __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions