Skip to content

Instantly share code, notes, and snippets.

@cockscomb
Created November 15, 2014 07:04
Show Gist options
  • Save cockscomb/ed3b2ea23a58d4aa1e43 to your computer and use it in GitHub Desktop.
Save cockscomb/ed3b2ea23a58d4aa1e43 to your computer and use it in GitHub Desktop.
本の自炊で間違って逆順にスキャンしてしまったときAcrobatで順番を修正するJavaScript
function reorder()
{
var lastPage = this.numPages - 1;
for (var i = 0; i <= lastPage; ++i) {
this.movePage(0, lastPage - i);
}
}
reorder();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment