Narinder Anand wrote:
> Hello Fellas,
> 
> I am trying to stamp an existing document using the examples in the 
> itext book. However it does not seem to work for the attached pdf. I 
> have attached the input (UB04_dup.pdf) and the output of the program 
> (UB04_dup_stamped.pdf). I was expecting to see "Hello People!" string in 
> the output, but it is not there.

But it is!
I've opened the PDF in my PDF debugging tool, and
I see that the content you've added is in object 3:

Q
q
q
BT
1 0 0 1 36 540 Tm
/Xi0 12 Tf
(Hello people!)Tj
ET
Q
Q

Of course, you won't see the text if you open the PDF
in a PDF viewer, for rather obvious reasons.
This is the mediabox of your PDF;
/MediaBox[-0.00391 -792 611.99609 0]
and you're adding the new content at x=36 y=540
That's outside the page boundaries.

In short: the content is there, but it's outside the visible area.
Change the coordinates, and your problem will be solved.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to