You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Palaniappan RM <pa...@useopenwrench.com.INVALID> on 2024/04/03 07:26:04 UTC

Not able to to watermark on PDFs with PDF version 1.7

Hi team,
  I am using *pdfbox* version 2.3.1 to watermark PDFs. It works for PDF
version 1.4 (adding a logo followed by text), but for PDF version 1.7 no
watermark is getting added, the program ends successfully without
any error/warning message displayed. Can you please help on this?

[image: image.png]

Regards,
Palaniappan RM

Re: Not able to to watermark on PDFs with PDF version 1.7

Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,

Please use the 5-parameter constructor of PDPageContentStream.
If it still doesn't work, please share the file and the result (upload 
to sharehoster).

There is no version 2.3.1, maybe you meant 2.0.31?

Tilman

On 03.04.2024 09:26, Palaniappan RM wrote:
> Hi team,
>   I am using *pdfbox* version 2.3.1 to watermark PDFs. It works for 
> PDF version 1.4 (adding a logo followed by text), but for PDF version 
> 1.7 no watermark is getting added, the program ends successfully 
> without any error/warning message displayed. Can you please help on this?
>
> image.png
>
> Regards,
> Palaniappan RM