ProgrammingHero1 / audiobook

288 stars 219 forks source link

Fails to read first 7 pages #4

Closed jeevanholla closed 4 years ago

jeevanholla commented 4 years ago

Because of this hardcoded value of 7, "for num in range(7, pages):", this code will fail to read document less than 7 pages or skip first 7 pages of larger document. It was meant to skip content section, so it would have been to make it command line argument for user to choose from.

ashraf-minhaj commented 4 years ago

It will not fail actually, it's how it is coded. Just change the value from 7 to whatever you like. It can and will read the pages.

naveenramcg commented 3 years ago

Because of this hardcoded value of 7, "for num in range(7, pages):", this code will fail to read document less than 7 pages or skip first 7 pages of larger document. It was meant to skip content section, so it would have been to make it command line argument for user to choose from.

The code is programmed to skip the first 7 pages. You can use any number to make the code suit your need instead of seven. To read the whole pages, you can use code: "for num in range(pages):". This helps you read the full pdf.