Image commands

sudo snap install pdftk

pdftk file1.pdf file2.pdf cat output mergedfile.pdf


pdftk full-pdf.pdf cat 12-15 output outfile_p12-15.pdf

svg to pdf

sudo apt-get install librsvg2-bin

rsvg-convert -f pdf -o foo.pdf foo.svg


inkscape "$pdf" -z --export-dpi=600 --export-area-drawing --export-png="$pngfile"

images to pdf

convert image.jpg image2.jpg image3.jpg  output.pdf

Pdf to images

sudo apt-get install poppler-utils

pdftocairo -png file.pdf  image_file.png