Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

143
Vistas
How to loop through folder and run code in each pdf with the adobe javascript debbuger

I have a simple code that adds a freetext annotation to each page on a pdf, the content of the annotations is according to the title.

I run this code on the javascript debbuger inside the pdf, I would like a code to run this code in each pdf in a folder

also for some reason the line "textSize: 26" does not work, It just put the last size used

var myname = this.documentFileName

var pos = myname.search("UNIT")
var UnitNum = myname.slice(pos+5,pos+9)
var currentpage = this.pageNum
var AllPages = this.numPages
for(var i=0; i<AllPages; i++){
    this.addAnnot({
        page: i,
        type: "FreeText",
        contents: UnitNum,
        rect: [50,690,70,765],
        Print: true,
        fillColor: color.transparent,
        strokeColor: color.white,
        textFont: font.Helv,
        textSize: 26,
    })

;
}

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda