Problem adding a barcode with Javascript.
Hi,
I'm trying to use the code below to add a barcode to a document.
The variable cRtn is set to '1234' by an earlier script.
this.addWatermarkFromText({
cText: cRtn,
nTextAlign:app.constants.align.center,
cFont: "Free3of9",
nFontSize:36,
aColor: color.black,
nStart: this.pageNum,
nOpacity: 1.0
});
SyntaxError: syntax error
1:Console:Exec
undefined
I can add the barcode if I use the UI to add the barcode, but seem to have a problem if I call this from JavaScript.
The console gives an error and nothing appears on the document.
Any idea what's going wrong?
