css issue

8 views
Skip to first unread message

nan liu

unread,
Jul 29, 2011, 10:39:17 AM7/29/11
to dompdf-dev
Regarding to the following code snippe and I have two questions:

1.where to add CSS code?

2.how to make HTML code outside single code (see $html variable)?

Thanks in advance and really appreciate for any help.

<?php
require_once("dompdf_config.inc.php");
$html =
'<html><body>'.
'<p>Hello World!</p>'.
'</body></html>';

$dompdf = new DOMPDF();
$dompdf->load_html($html);

$dompdf->render();
$dompdf->stream("hello_world.pdf");

?>

BrianS

unread,
Aug 17, 2011, 12:18:07 PM8/17/11
to dompd...@googlegroups.com
Looks like we're discussing this on on StackOverflow: domPDF CSS problem. So I'll just add this note: This post would be more appropriate in the dompdf support group. The purpose of this group is to discuss the internals of dompdf and future development.
Reply all
Reply to author
Forward
0 new messages