Big docs will need big memory and iText has some optimizations but it's not 
really stellar in memory usage. You can add annotation with 
PdfCopy.createPageStamp().addAnnotation().

Paulo

> -----Original Message-----
> From: merco [mailto:d.merca...@sygest.it] 
> Sent: Friday, September 04, 2009 7:06 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] PdfStamper and large PDFs
> 
> 
> Now i'm using 
> _reader = New PdfReader(New RandomAccessFileOrArray(_fromfile, True),
> Nothing)
>  _Dest = New PdfStamper(_reader, New FileStream(_tofile,
> FileMode.CreateNew), PdfWriter.VERSION_1_4, _appendMode)
> 
> the memory goes from 65924KB to 343164KB, so about a half.
> 
> I'm wondering if i can add annotation with pdfcopy; in this 
> case i can avoid
> this 2nd opening while adding annotations while i merge all 
> the 3600  files
> with pdfcopy
> 
> 
> 
> 
> Paulo Soares-3 wrote:
> > 
> > Use the constructor PdfReader(RandomAccessFileOrArray raf, byte[]
> > ownerPassword).
> > 
> > Paulo


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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