// Place the scaled image in the top left corner of the page and end this page of the pdfpdf_place_image($pdf, $image, 0, 0, $scale);pdf_end_page($pdf); }

// Finish the pdf Filepdf_close($pdf);?>

Please note that this script disregards whether the height of the image is unable to scale comparably to an 8.5x11 inch document. Depending on the images you are working with, you may want to add some logic to set your scale value based on the true height and width of the image.