Actually, my main domain is pointed to sub-domain and all images are on
sub-domain. So actual image path is like http://sub.domain.com/common/img.jpg
and if I run this image through browser using main domain as
http://maindomain.com/common/img.jpg it displays the image.
However, in PDF it is not working. It is displaying image only if I used
sub-domain and not with main domain.
In browser if we run subdomain.maindomain.com it gets redirected to
maindomain.com. All my images are on subdomain.maindomain.com. I have put
DOMPDF library as it is and following is the code $objDompdf->set_paper( 'A4',
'portrait' ); $objDompdf->load_html( $strHtmlContent ); $objDompdf->render();
$strPdfContent = $objDompdf->output(); $strHtmlContent has all html code. In
that if I gave images path as subdomain.maindomain.com/images/img.jpg then it
works but if I gave the path as maindomain.com/images/img.jpg then it doesn't
show any image in the PDF.
Original issue reported on code.google.com by rups200...@gmail.com on 14 Sep 2012 at 10:37
Original issue reported on code.google.com by
rups200...@gmail.com
on 14 Sep 2012 at 10:37