On 9/21/2013 7:05 AM, techrek73 wrote: > Hello, > > I have a requirement to sort and merge the PDF files.
I'm sorry, but your requirement sounds like a homework assignment. The mailing-list can't be used to have other people do your homework. > The source PDF files > are stored as image1, image2 , image3 etc.. > > 1) I need to merge these PDF in a order image1 should be the page 1 or > merged PDF and image2 second page so on and so forth. Merging PDFs: see http://manning.com/lowagie2/samplechapter6.pdf Ordering file names can be done using plain Java syntax. > 2) I need another order by date, so I need order by image1, date1, image2, > date2 (if possible) Define "date". A file has a date on the file system: use plain Java syntax to get this date. A PDF has two dates: a creation date and a modification date. You can use iText to get this metadata from a PDF. > 3) I need to be able to pass the orderby as an arguments. This is what raised my suspicion that this is a homework question. It's not a question a graduated software developer would ask. > Can someone please provide me an example? This is what convinced me that this is a homework question. ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php