Hicham,

You should be able to read the documents one page at a time and use 
PDDocument.addPage().

But I'd warn against doing everything in memory for scalability.  Having a 
large number of (potentially) large PDFs will run you out of Heap space 
mighty fast.  Many users don't understand technical details like DPI, so 
they just scan in documents as "high" quality resulting in PDFs which are 
hundreds of MB.

--Adam




Hicham Snoussi <[email protected]> 
05/28/2009 03:49
Please respond to
[email protected]


To
[email protected]
cc

Subject
merge documents in memory






Hi,

I'm new to the pdfbox and I have a question regarding the merge, is it
possible to merge documents that have been constructed in memory and save
the result to a new document in memory also.

If you have an example of this, it will be much appreciated,

Thank you
Hicham

Reply via email to