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

129
Vistas
how to embed a watermark on pdf files with more than one page with image-watermark

as the title says i'm trying to figure out how to embed a watermark on every page of a pdf file using image-watermark library. Actually i'm only able to add a text watermark on file with only one page so i'm wondering if there's a possibility to accomplish this task.

Here's my code with a destination path and a response to the client with the link to download

let optionsWatermark = {
        'text': 'testo di prova',
        'color' : 'rgb(154, 50, 46)',
        'dstPath': `public/watermarked/${pdf}`
    }
    watermark.embedWatermark(`public/uploads/${pdf}`, optionsWatermark)
        
    res.status(200).json({
        data: 'Watermark added correctly',
        link: `/watermarked/${pdf}`
    })
    console.log('Your watermark has been added successfully') 
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You cannot add a water mark to multiple pages using your image-watermark library. You could convert each page into an image, apply the watermark, then re-create a new pdf using those images though.

about 4 years ago · Juan Pablo Isaza Denunciar
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