Watermarking with PDFBox

前端 未结 6 1636
说谎
说谎 2020-11-28 09:12

I am trying to add a watermark to a PDF specifically with PDFBox. I\'ve been able to get the image to appear on each page, but it loses the background transparency because i

6条回答
  •  情话喂你
    2020-11-28 09:34

    There is another Overlay class within util package, that saves you from creating a pdf with same number of pages as the source document and then doing the overlay.

    To understand its usage, take a look at pdfbox source code, specifically the OverlayPDF class.

提交回复
热议问题