DOMPDF: render html dosyaları yükleme, çalışmıyor

0 Cevap php

DOMPDF web siteme bir sayfa bir pdf oluşturmak mümkün değildir. Ancak, sayfa kaydedilir ve o kadar basit bir statik html dosyası yüklendiği ve çalıştık!

Konu url, ya da başka bir şey ile eğer öyleyse, ben bilmiyorum .. bu ben almak hatadır:

Uyarı: require_once (/ home/o110334/public_html/dompdf/include/firephp.cls.php) [function.require-once]: / home/o110334/public_html/dompdf/dompdf_config böyle bir dosya ya da dizin yok: failed to open stream . hattında 194 inc.php

Ölümcül hata: require_once () [function.require]:. '/ Home/o110334/public_html/dompdf/include/firephp.cls.php' (include_pathdaki = 'gerekli Başarısız açılış :/ usr / lib / php :/ usr / local hattında 194 üzerinde / home/o110334/public_html/dompdf/dompdf_config.inc.php / lib / php ')

Bu kodu:

$file = "admin/store/orders/45/invoice/print"; // doesn't work
//$file = "invoice_sample2.html"; //it works (same web page, but stored in a html file)

$dompdf = new DOMPDF();
$dompdf->load_html_file($file);
$dompdf->render();
$dompdf->stream("sample.pdf");

0 Cevap