sdglhm / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

DOMPDF Setup on CentOS 5.5 #370

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.n/a
2.n/a
3.n/a

What is the expected output? What do you see instead?
Code seems to hang at:  $dompdf = new DOMPDF();

What version of the product are you using? On what operating system?
DOMPDF 0.6 beta 2 on CentOS 5.5 with PHP 5.1.6.

Please provide any additional information below.
I'm getting a red for DOMDocument extenstions.  According to PHP site PHP 5 and 
above already has DOMDocument extensions activated by default.  I tried the 
following code below.  I'm not sure what I'm missing in my setup.  Please 
advise!  Thanks.

<?php

require_once("dompdf_config.inc.php");

$html = "<html><title></title><head></head><body>It works!</body></html>";
  echo "Stringed data";
$dompdf = new DOMPDF();
echo "Stringed data passed";
$dompdf->load_html($html);

$dompdf->render();

$dompdf->stream("test2.pdf");
echo "PDF has been created!";

?>

Original issue reported on code.google.com by rsjpa...@gmail.com on 23 Oct 2011 at 7:07

Attachments:

GoogleCodeExporter commented 9 years ago
Hello, some Linux distibutions don't have this extension be default, see this 
comment in PHP docs : 
http://www.php.net/manual/fr/dom.setup.php#102046

Original comment by fabien.menager on 23 Oct 2011 at 2:04

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16