Explorar o código

New script move_last_page.sh

erdo_king %!s(int64=4) %!d(string=hai) anos
pai
achega
5781a8bf05
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      move_last_page.sh

+ 8 - 0
move_last_page.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+FILE=$1
+
+PAGES=`pdfinfo ${FILE} | awk '/^Pages:/ {print $2}'`
+
+
+pdftk ${FILE} cat ${PAGES} 1-$(( ${PAGES}-1)) output ${FILE}_resorted.pdf