• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

looping on files ordered by file name

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hope that this helps

 
Nesrin aboud
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you very much, it helped a lot
 
I wasn't selected to go to mars. This tiny ad got in ahead of me:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic