pdf - How do I make text field to be hidden? -
i'd create text field itextsharp not visible. here's code i'm using create textfield:
textfield field = new itextsharp.text.pdf.textfield(writer, new itextsharp.text.rectangle(x, y - h, x + w, y), name); field.backgroundcolor = new basecolor(bgcolor[0], bgcolor[1], bgcolor[2]); field.bordercolor = new basecolor(bordercolor[0], bordercolor[1], bordercolor[2]); field.borderwidth = border; field.borderstyle = pdfborderdictionary.style_solid; field.text = text; writer.addannotation(field.gettextfield());
in java, textfield class has method named setvisibility() inherited parent, basefield class. possible values are:
basefield.visible,basefield.hidden,basefield.visible_but_does_not_print, andbasefield.hidden_but_printable.
as you're using itextsharp, should setvisibility() method or visibility property.
using render mode suggested person in answer question applies content written content stream, xobject or appearance. asking hide field, , that's different.
Comments
Post a Comment