You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After processing a bunch of pdf files I noticed that the last page always seems to be skipped and not included in the output. I looked through the code some and I believe the error is due to a logic mistake in the hasNext() of extraction/JPedalExtractor.java
The issue seems to be caused by the line haveNext = false; in the final if statement. When the last page is reached it always returns false for hasNext as a result of this, even if there is still a page to process. Commenting out this line seems to allow it to generate the final page output without any issues, but I don't know if this is the best/correct thing to do.
This was all done with what should be the version published in github as built with maven (version 1.7.7).
The text was updated successfully, but these errors were encountered:
After processing a bunch of pdf files I noticed that the last page always seems to be skipped and not included in the output. I looked through the code some and I believe the error is due to a logic mistake in the hasNext() of extraction/JPedalExtractor.java
The issue seems to be caused by the line haveNext = false; in the final if statement. When the last page is reached it always returns false for hasNext as a result of this, even if there is still a page to process. Commenting out this line seems to allow it to generate the final page output without any issues, but I don't know if this is the best/correct thing to do.
This was all done with what should be the version published in github as built with maven (version 1.7.7).
The text was updated successfully, but these errors were encountered: