This article i will teach you 2 method to finish this work.
一、 convert from imagemagick
If you want to go the command line way, you can use ImageMagick. It’s very easy to convert several images into one PDF file this way as well.
Open a terminal and install ImageMagick using the command below:
apt-get -y install imagemagick
Then ,try this command:
$ convert 11.jpeg 22.jpeg 33.jpeg output.pdf
convert-im6.q16: not authorized `output.pdf' @ error/constitute.c/WriteImage/1037.
Please refer to my other article for this error:
Try again, no news is good news
That’s very nice
二、img2pdf
it’s from https://gitlab.mister-muffin.de/josch/img2pdf
apt install img2pdf
The images must be provided as files because img2pdf needs to seek in the file descriptor.
If no output file is specified with the -o
/--output
option, output will be done to stdout. A typical invocation is:
$ img2pdf img1.png img2.jpg -o out.pdf