Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!