rathana wrote:
> Hi All, 
> 
>  Any help is greatly appreciated. 
> 
> I am trying to use itext using the code sample presented in 
> http://viralpatel.net/blogs/2009/06/itext-tutorial-merge-split-pdf-files-using-
> itext-jar.html. 

That's not an official example.

> It does merge the files. Only problem is, there is extra space at the top of 
> every page(in the merged document) pushing the text on every page downwards 
> resulting in some text being lost at the bottom. How can the itext be 
> instructed to not generate that extra space at the top of every page. 

iText doesn't "generate that extra space". You are telling iText to use 
a page size that doesn't match the original size.

Also you are using the wrong class to merge the documents: you're losing 
all the interactive features of the original documents if you use this 
example.

You should read chapter 6 of the second edition of "iText in Action" to 
find out the best class for this task.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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