Adding flattenable text to a PDF through Javascript
dear adobe experts,
i have been trying add text pdf file through javascript past 4 hours. have gotten hang of multiple adobe javascript guides. have looked thorough cannot solve problem: adding text box/text pdf page using javascript , being able flatten successfully.
i have been using addfield text option when flattened text box disappears. try mess around button option , try flatten weary of possible bugs
here code:
var f = this.addfield("info", "text", 0, [5,5, 250,25]); f.delay = true; f.alignment = "center"; f.fillcolor = color.white; f.linewidth = 1; f.strokecolor = color.red; f.borderstyle = style.s; f.textsize = 24; f.textcolor = color.black; f.textfont = font.arial; f.defaultvalue = "receive stamp"; f.editable = false; f.multiline = false; f.donotscroll = true; f.delay = false;
any appreciated,
good day
there's mistake in code, prevents value being set.
are running code js console? if so, happens when run it?
edit: there's more 1 mistake, actually...
More discussions in Editing & Exporting PDFs
adobe
Comments
Post a Comment