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

220
Visualizações
addwatermarkfromtext() inacrobat not looping

ok, so I took bits of codes from the internet and managed to get some stuff to work but it only works on the first page and I would like that to be done on every page. I'm sure it's a noob mistake but just haven't found the answer.

The idea is that it writes the filename with a barcode font and the line after the page number, I put it in two different loops to have two different fonts (hoping that it makes sense).

    for (var p = 0; p < this.pageNum; p++);
var cMyText = event.target.documentFileName.replace(/\.pdf$/i,"");
event.target.addWatermarkFromText({
    cText: cMyText,
    nFontSize:10,
    aColor: color.black,
    cFont: "LibreBarcode39Text-Regular",
    nHorizAlign:app.constants.align.left,
    nHorizValue: 36,
    nVertAlign:app.constants.align.top,
    nVertValue: -3,
    nStart: p
})
for (var s=0; s<this.pageNum; s++);
var cMyText = "\nPage " + (s+1) + " of " + numPages;
event.target.addWatermarkFromText({
    cText: cMyText,
    nFontSize:8,
    aColor: color.black,
    nHorizAlign:app.constants.align.left,
    nHorizValue: 36,
    nVertAlign:app.constants.align.top,
    nVertValue: -10,
    nStart: s

})
about 4 years ago · Santiago Trujillo
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