
$photoPDF->Image('D:\ReportPhotos\\'.$imageid, $xoffset, 35, $width, $height, $filetype, $url, '', true, 150, '', false, false, 1, false, false, false) $photoPDF->setImageScale(PDF_IMAGE_SCALE_RATIO) $photoPDF->SetAutoPageBreak(FALSE, PDF_MARGIN_BOTTOM) $photoPDF->SetFooterMargin(PDF_MARGIN_FOOTER) $photoPDF->SetHeaderMargin(PDF_MARGIN_HEADER) $photoPDF->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT) $photoPDF->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED) $photoPDF->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)) $photoPDF->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)) $photoPDF->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING) $photoPDF = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false)
#Pdf images turning sideways pdf#
Here's the relevant code: // create new PDF document Here's what the image looks like on the PDF:

Here's what the image looks like on the web: Here's a sample image that's displaying sideways on the PDF but normally on the web and my computer:


For some reason, some of the photos appear correctly on my computer and on the web, but when I place that image on the PDF, it appears to be sideways. I'm using the TCPDF PHP library to generate PDF documents that contain photos.
