Deleting last page without knowing its number #5674
-
|
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
|
Hmm Mutool/SumatraPDF Run is fairly "easy" for such a task as it has the concept countPages as soon as opened and thus you can script around that however the character N denotes the last page. If no pages are specified, then all pages will be included. thus in theory if you say N it "should" remove the last ? |
Beta Was this translation helpful? Give feedback.
-
|
Maybe I’m overcomplicating this, but here’s what I’m trying to do. |
Beta Was this translation helpful? Give feedback.
-
|
@IgorCF-IS you can remove many of the lines (especially echo's) I added while testing so replace |
Beta Was this translation helpful? Give feedback.
-
|
We can use SumatraPDF RUN to make it far more internal So if you save the script as lasttext.js you can reuse it fastest in a cmd like this where you ether drop a file on the cmd or run with a folder of inputs etc. |
Beta Was this translation helpful? Give feedback.
-
|
Hmm note there is another change in the wings to improve tool ability that may use a different filename.exe ? |
Beta Was this translation helpful? Give feedback.
@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
you can remove many of the lines (especially echo's) I added while testing so replace
(…