Re: drawing arrow in content stream

2017-08-20 Thread chitgoks
Hi maruan this is just a followup to my previous email regarding the apperance stream of an arrow annotation. attached is my sample code instead because there is no padding, part of the arrow head is cut off public class Test { public static void main(String[] args) throws Exception {

Re: watermark text issue

2017-08-20 Thread chitgoks
okay thank you On Sun, 20 Aug 2017 at 6:41 PM Tilman Hausherr wrote: > Am 20.08.2017 um 12:34 schrieb chitgoks: > > ok. for watermark, here is the sample pdf. this is the same link i gave > to > > maruan > > > > > https://www.dropbox.com/sh/f5zfhh00jhab48n/AABMJ4wpqeyNrmRFhKQPh_Gfa?dl=0 > > > >

Re: watermark text issue

2017-08-20 Thread Tilman Hausherr
Am 20.08.2017 um 12:34 schrieb chitgoks: ok. for watermark, here is the sample pdf. this is the same link i gave to maruan https://www.dropbox.com/sh/f5zfhh00jhab48n/AABMJ4wpqeyNrmRFhKQPh_Gfa?dl=0 the code i use for watermark is this. i did save the graphic state then restored it. the issue is

Re: watermark text issue

2017-08-20 Thread chitgoks
ok. for watermark, here is the sample pdf. this is the same link i gave to maruan https://www.dropbox.com/sh/f5zfhh00jhab48n/AABMJ4wpqeyNrmRFhKQPh_Gfa?dl=0 the code i use for watermark is this. i did save the graphic state then restored it. the issue is that the transparent text i created is sele

Re: watermark text issue

2017-08-20 Thread Tilman Hausherr
Am 20.08.2017 um 10:25 schrieb chitgoks: hi tilman i dont understand though. the reason why i save the graphic state is so that i could rotate the watermark text to vertical and restore it so the page's original contents will not be rotated. or i did it the wrong way? Yes. First save the grap

Re: watermark text issue

2017-08-20 Thread chitgoks
hi tilman i dont understand though. the reason why i save the graphic state is so that i could rotate the watermark text to vertical and restore it so the page's original contents will not be rotated. or i did it the wrong way? please advise thank you On Sun, Aug 20, 2017 at 4:20 PM, Tilman H

Re: watermark text issue

2017-08-20 Thread Tilman Hausherr
You first call "cs.setGraphicsStateParameters(gs)" and then save the graphics state. So the setting will be kept even after you've called "cs.restoreGraphicsState();". Tilman Am 20.08.2017 um 09:33 schrieb chitgoks: hi tilman yes. the watermark is appended to an existing pdf. and my 5th para

Re: watermark text issue

2017-08-20 Thread chitgoks
hi tilman yes. the watermark is appended to an existing pdf. and my 5th parameter is true i just want it not to be selectable. prepend would have worked. but for an existing page, what happens is that since i made the watermark text transparent, the page's text also gets transparent. this is my