Skip to content
Discussion options

You must be logged in to vote

@IgorCF-IS
The latest SumatraPDF PRE-release e now has a working info output, so this is a rough example of use to count pages before and after "clean" but shows the methodology

Page 16 is blank
Checking page 15...
Page 15 is blank
Checking page 14...
Page 14 is blank
Checking page 13...
Page 13 is blank
Checking page 12...
Page 12 is NOT blank
Finished scanning. NON Blank page at end: 12
Keeping pages 1-12
attempting "C:\Program Files\SumatraPDF\SumatraPDF.exe" clean "C:\Users\WDAGUtilityAccount\AppData\Local\Temp\temp.pdf" output.pdf 1-12
 12
Pages detected:  12
Done.
Press any key to continue . . .

you can remove many of the lines (especially echo's) I added while testing so replace (…

Replies: 5 comments 11 replies

Comment options

You must be logged in to vote
9 replies
@IgorCF-IS
Comment options

@GitHubRulesOK
Comment options

@IgorCF-IS
Comment options

@kjk
Comment options

kjk Jun 13, 2026
Maintainer

@GitHubRulesOK
Comment options

Comment options

You must be logged in to vote
1 reply
@GitHubRulesOK
Comment options

Comment options

You must be logged in to vote
1 reply
@IgorCF-IS
Comment options

Answer selected by IgorCF-IS
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants