pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: watermark text issue
Date Sun, 20 Aug 2017 06:56:52 GMT
Am 20.08.2017 um 08:38 schrieb chitgoks:
> Hi gilad. thank you for replying
>
> there should still be some way to do this right? if not the content stream
> then i guess the only other way is via overlays

Are you aware that you can always add a content stream to an existing 
page? Either prepend or append. When appending, use the constructor with 
5 parameters and set the last to true. For a watermark, prepend is 
probably better.

Tilman

>
> Website/Java Games: http://www.chitgoks.com
> My Blogs:
> http://tech.chitgoks.com
> http://wuhtevah.chitgoks.com
> http://disneyusa.blogspot.com
>
> On Sat, Aug 19, 2017 at 4:42 PM, Gilad Denneboom <gilad.denneboom@gmail.com>
> wrote:
>
>> If you're adding text it will always be selectable. If you don't want it to
>> be you need to use an image.
>>
>> On Sat, Aug 19, 2017 at 4:53 AM, chitgoks <chitgoks@gmail.com> wrote:
>>
>>> i have question regarding watermarks
>>>
>>> so i have created some transparent like text in the content stream to
>> mimic
>>> a watermark
>>>
>>> problem is, it can still be selected. is there an option in content
>> stream
>>> to flatten this?
>>>
>>> i read about overlay but my code is already catered to content stream. so
>>> would be nice not having to use overlay if possible
>>>
>>> any ideas?
>>>
>>> mark
>>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message