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

128
Views
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 answers
Answer question

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 Report
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!