¿Cómo puedo agregar un campo de texto a todas las páginas pares de un documento pdf? Con lo siguiente, el texto se agrega solo a la segunda página del documento.
if ( fld = "undefined" ) { var f = this.addField("MacroDate", "text", 1, [550,0,50,15]); f.delay = true; f.alignment = "center"; f.fillColor = color.transparent; f.lineWidth = 0; f.strokeColor = color.black; f.borderStyle = border.s; f.textSize = 8; f.textColor = color.black; f.textFont = font.Helv; f.readonly = false; f.multiline = false; f.doNotScroll = true; f.value = util.printd("dd/mm/yyyy", new Date()); f.delay = false; } ```