merge jpg into pdf online code example
Example 1: turn photos into pdf
This one allows only 1 free conversion a day: https://smallpdf.com/jpg-to-pdf
This one allows unlimited: https://imagetopdf.com/
Example 2: jpg to pdf
$images = array("your-file.jpg"); //You can use a URL as well
$pdf = new Imagick($images);
$pdf->setImageFormat('pdf');
$pdf->writeImages('combined.pdf', true); //The file name
//When ran, it will save in the same directory as the php file/script