kamz wrote:
> Hi all,
> I am facing the following problem. I am trying to download a pdf and split
> the pdf into 10 page as a pdf. But source pdf’s are in shared in http
> location. In order to split pdf, I need load whole PDF into reader (i.e. i
> need load reader object into memory).

Why?

> When I try to load the same I am
> getting out of memory exception.  Currently the application is running in
> tomcat 5.5 server with heap size of min 256 and max 512.

That's not much.

> PDF location is in HTTP, PDF size is >100 MB.  Is there is any alternative
> way to download the PDF page by page and split and assemble same. Please any
> if you face the problem please help me. Thanks in advance.

See p52 of iText in Action (title: PdfReader and memory use).
That's chapter 2, a chapter that is available for free here:
http://itextsoftware.com/chap2ebook.shtml
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
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
[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