gavin wrote:
> Hi Firstly ,I open the pdf template file with different size ,then write 
> some signatures in

Are you talking about real digital signatures?
Or are you talking about jpegs representing signatures
(in which case you're not really signing the document)?

> and output as a new pdf file.But new file can not 
> maintain the original size.I am not sure why this is happening 

> PdfWriter writer = PdfWriter.getInstance(document, new 
> FileOutputStream(pathstr + File.separator + afileName)); 

*SIGH*

I've asked this BEFORE and I'll ask it AGAIN: where do you guys find the 
examples using PdfWriter/PdfImportedPage to split or merge PDF files?

Please read chapter 6 of the 2nd edition of "iText in Action"
http://itextpdf.com/book/
and you'll find a much better way to concatenate PDF files.

However: if you're adding real digital signatures (and not fake ones 
using JPEGs), you'll have to be carefully and make sure you do 
everything in the right order. Otherwise merging documents will 
invalidate the signatures.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
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