Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda