I generate price lists and data sheets. The price lists can be open on chrome, ie and firefox. The data sheets just can be open in firefox. On chrome i see the error "Failed to load PDF document" and in ie i see the error message "site can not load".
I checked my complete code and find the row, that made this error:
$sql_galeriefotos=mysql_query("SELECT * FROM artikel_fotos WHERE artikel_id=$hauptartikel_id LIMIT 18");$i=0;while($rowgaleriefotos=mysql_fetch_array($sql_galeriefotos)){$i++;if($i==1){$pdf->SetXY(12,41);}elseif($i==4){$pdf->SetXY(12,81);}elseif($i==7){$pdf->SetXY(12,121);}elseif($i==10){$pdf->SetXY(12,161);}elseif($i==13){$pdf->SetXY(12,201);}elseif($i==16){$pdf->SetXY(12,241);}$foto_pfad=utf8_encode($rowgaleriefotos[foto_pfad]);$pdf->Image('http://www.domain.com/'.$foto_pfad,'','',60,40,'','','T',false,100,'',false,false,0,false,false,false);}
This code works on all browsers if i change the "LIMIT" under 9. So if the row looks like this, it will be shown on chrome and ie, too:
$sql_galeriefotos=mysql_query("SELECT * FROM artikel_fotos WHERE artikel_id=$hauptartikel_id LIMIT 8");
Whats the reason? I must show more pictures in the PDF.
Is the memory overloaded?
Is there another problem/error with to much pictures on one page?
Can anyone help me?
Thanks!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hard to tell without possibility to try it, but a wild guess is that you send something (like headers, etc) to browser before you let the tcpdf push the pdf-file. And maybe the firefox doesn't mind about double headers / charset broblems and renders the pdf. All in all, this is just a wild guess, but just might be the case.
Mikko
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello together,
i have a problem with my generated tcpdf files.
I generate price lists and data sheets. The price lists can be open on chrome, ie and firefox. The data sheets just can be open in firefox. On chrome i see the error "Failed to load PDF document" and in ie i see the error message "site can not load".
I checked my complete code and find the row, that made this error:
This code works on all browsers if i change the "LIMIT" under 9. So if the row looks like this, it will be shown on chrome and ie, too:
Whats the reason? I must show more pictures in the PDF.
Is the memory overloaded?
Is there another problem/error with to much pictures on one page?
Can anyone help me?
Thanks!!
Can anyone help me? :(
Can anyone help me? :(
(Oh duplicate - Please delete! :) )
Last edit: tobbe5 2015-09-28
Have never anyone had this problem before? :(
Hi Tobbe,
Hard to tell without possibility to try it, but a wild guess is that you send something (like headers, etc) to browser before you let the tcpdf push the pdf-file. And maybe the firefox doesn't mind about double headers / charset broblems and renders the pdf. All in all, this is just a wild guess, but just might be the case.
Mikko Salminen don't write back via private message.
Can anyone look at the script and the output site, if i send you the data via mail/pm?
Thanks for any help!
I noticed this in Chrome and I just clicked on the browser refresh.
Voila! The pdf document appeared.