The final merged. On Dec 18, 2006, at 2:31 AM, Davy Lee wrote:
> > Dear Paulo, > even for two 2G pdf file, do u have a better sosution to merge them, > sometimes I don't need to modify the pages, sometime I do. > > btw, the 2G limitation is for the original pdf file or for the > finnal merged > file? > cheers. > > Davy lee > > > Paulo Soares wrote: >> >> You'll certainly won't use iText to do this. iText has a 2G size >> limitation. >> >> Paulo >> >> ----- Original Message ----- >> From: "Davy Lee" <[EMAIL PROTECTED]> >> To: <[email protected]> >> Sent: Monday, December 18, 2006 4:11 AM >> Subject: [iText-questions] How to merge two 3G size pdf fast >> >> >>> >>> I have two 3G size pdf files, we need to use ITEXT to merge them >>> into one >>> single new pdf document. >>> However, to do this will waste too much time to finished it. It >>> would >>> cost >>> us about half days to finish >>> to merging process. Do u guys have any new solution to do it? >>> cheers. >>> My code is below: >>> >>> //pdf files array list. >>> String [] fileList = {"sample1.pdf","sample2.pdf"}; >>> >>> Document document; >>> PdfCopy copy; >>> PdfReader reader; >>> >>> try >>> { // step 1 >>> document = new Document(); >>> // step 2 >>> copy = new PdfCopy(document, new FileOutputStream( >>> "sample_Combination.pdf")); >>> // step 3 >>> document.open(); >>> for(int docNum=0; docNum<fileList.length;docNum++) >>> { >>> reader = new PdfReader(new >>> RandomAccessFileOrArray(fileList[docNum]), null); >>> int pages = reader.getNumberOfPages(); >>> // step 4 >>> for (int pageNum = 0; pageNum < pages; ) >>> { >>> ++pageNum; >>> copy.addPage(copy.getImportedPage(reader, >>> pageNum)); >>> }//iterate page loop. >>> }// iterate doc loop. >>> >>> // step 5 >>> document.close(); >>> >>> >>> >>> } >>> catch(IOException e) >>> { >>> e.printStackTrace(); >>> } >>> catch (DocumentException e) >>> { >>> e.printStackTrace(); >>> } >>> >>> very big thanks in advance. >>> -- >>> View this message in context: >>> http://www.nabble.com/How-to-merge-two-3G-size-pdf-fast- >>> tf2837983.html#a7923347 >>> Sent from the iText - General mailing list archive at Nabble.com. >>> >>> >>> -------------------------------------------------------------------- >>> ----- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to >>> share >>> your >>> opinions on IT & business topics through brief surveys - and earn >>> cash >>> http://www.techsay.com/default.php? >>> page=join.php&p=sourceforge&CID=DEVDEV >>> _______________________________________________ >>> iText-questions mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/itext-questions >>> Buy the iText book: http://itext.ugent.be/itext-in-action/ >> >> >> --------------------------------------------------------------------- >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share >> your >> opinions on IT & business topics through brief surveys - and earn >> cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> iText-questions mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> Buy the iText book: http://itext.ugent.be/itext-in-action/ >> >> > > -- > View this message in context: http://www.nabble.com/How-to-merge- > two-3G-size-pdf-fast-tf2837983.html#a7925099 > Sent from the iText - General mailing list archive at Nabble.com. > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
