amitdivya / dompdf

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

Damaged PDF #585

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I tried to save PDFs with 0.6.1 and the latest php-font-lib-master.

<?php

require_once("/www/htdocs/XXX/test/wp-content/themes/test/dompdf/dompdf_config.i
nc.php");

$html =
  '<html><body>'.
  '<p>Put your html here, or generate it with your favourite '.
  'templating system.</p>'.
  '</body></html>';

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

?>

It saves a PDF but the file is damaged. When I open it with a Texteditor there 
is empty.

Could somebody help?

Thank you very much

Best regards

Original issue reported on code.google.com by martinro...@gmail.com on 4 Jan 2015 at 10:20