posted 15 years ago
Hi there ,
I scan several papers and give them a name of 0.jpg, 1.jpg, ordered by numbers
and then add them to a pdf file by the order of their names ,
sometimes the created pics bypass a number such as 0.jpg, 1.jpg, 3.jpg, 4.jpg
2.jpg in examples was lost
so when looping on it error appear before completing the addition of all pics to the pdf
can any body help me check on the next number before adding it to the pdf
I use iText.jar for creating the pdf
also I would like to know how to loop on the files ordered by lastModification() date