Xchange Editor Javascript Example | Pdf

var watermarkText = "CONFIDENTIAL"; for (var i = 0; i < this.numPages; i++) var annot = this.addAnnot( type: "FreeText", page: i, rect: [50, 50, 250, 100], contents: watermarkText, textSize: 24, textColor: color.red, opacity: 0.5 );

Let’s begin with simple examples that you can paste directly into the JavaScript Console. pdf xchange editor javascript example

if (cChoice == "odd") for (var i = 0; i < this.numPages; i+=2) this.print(nStart: i, nEnd: i); var watermarkText = "CONFIDENTIAL"; for (var i =