Various PDF Methods
Making a PDF file out of images
For a single image: magick [image name] [document name].pdf
For multiple images: magick [eg. IMG*] [document name].pdf
To first resize images to the same size before making a PDF: magick [image] -resize [width]x[height] output.jpg
Merge multiple PDF files
pdfunite file1.pdf file2.pdf file3.pdf output.pdf
Split the original PDF file into single page PDF files
pdfseparate input.pdf output-page\ %d.pdf
Split a range of pages into separate PDF files
The flags -f and -l signify respectively the first and last pages of the range. It will yield separate files for each page in the range, which would have to be merged later, if so desired.
pdfseparate -f 1 -l 5 input.pdf output-page\ %d.pdf
Convert a PDF file to an image
With ImageMagick:
magick input.pdf output.png
With poppler:
pdftoppm -png input.pdf > output.png
Add a signature to a PDF file
Make a .svg signature, for example in inkscape, and then use Xournal++
In the top menu, choose Tools→Image, click the place you want to insert the image of your signature and then choose the file in the file dialogue.
Add OCR to a PDF
You need a program called ocrmypdf. It’s available in the AUR.
Then it is simply: ocrmypdf your-file.pdf your-file-with-OCR.pdf
Optionally you can add a -l flag, with a three letter language code (e.g. deu, spa) to change the language.