How To Remove the Last Page of a PDF Using Convert
1 |
convert BIA_Plate_Number_Checklist_1-20000.pdf[0-819] new.pdf |
1 |
convert BIA_Plate_Number_Checklist_1-20000.pdf[0-819] new.pdf |
Make sure you have Ghostscript installed, then:
1 |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS="/ebook" -sOutputFile=output.pdf input.pdf |
-dPDFSETTINGS={value} where {value} is one of: /screen – the lowest resolution and lowest file size, fine for viewing on a screen /ebook – mid-range resolution and file size /printer – high-quality setting used for printing PDFs /prepress – high-quality setting used for printing PDFs As always, YMMV…
convert myFile*.jpg myFile.pdf convert myFile*.png myFile.pdf