If you have a ten-page contract with a signature page on page 10, and sign the last page and scan it, and you don't want to scan the other nine pages too:
Btw pdftk on Ubuntu 18.04 and later is broken. It gets installed as a snap so it can't see certain files (e.g. files outside your home directory, even if symlinked to there, seem to be a problem). This way of installing works though:
https://askubuntu.com/a/1046476/70692
And to record it for posterity:
echo -e "Packages for pdftk downloaded\n\n"
# install packages
echo -e "\n\n Installing pdftk: \n\n"
sudo apt-get install ./libgcj17_6.4.0-8ubuntu1_amd64.deb \
./libgcj-common_6.4-3ubuntu1_all.deb \
./pdftk_2.02-4build1_amd64.deb \
./pdftk-dbg_2.02-4build1_amd64.deb
echo -e "\n\n pdftk installed\n"
echo -e " try it in shell with: > pdftk \n"
# delete deb files in /tmp directory
rm ./libgcj17_6.4.0-8ubuntu1_amd64.deb
rm ./libgcj-common_6.4-3ubuntu1_all.deb
rm ./pdftk_2.02-4build1_amd64.deb
rm ./pdftk-dbg_2.02-4build1_amd64.deb
On a Mac, use poppler instead:
or with automatic page counting:
Or you can use Preview if you really have to: print-to-pdf the pages you want, then use Edit > Insert > Page from File... to add another.