Re: dompdf class problem
| From: | Rene Veerman | Date: | Tue, 18 May 2010 22:31:45 +0000 |
| Subject: | Re: dompdf class problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305308@lists.php.net to get a copy of this message | ||
we don't have that class, nor it's documentation...?
On Tue, May 18, 2010 at 1:17 PM, saeed ahmed <saeed.sas@gmail.com> wrote:
> I extremely sorry, if my topic isn't related with this group. I apologizes
> for this.
>
> I'm trying to add page number on the pdf. I have try the below code.
> but couldn't get the page number at the pdf.
> where I'm doing wrong. please suggest me.
> <?php
> require_once("dompdf_config.inc.php");
>
> $dompdf = new DOMPDF();
>
> $html = '<html><body>';
> $html .='<script type="text/php">
> $font = Font_Metrics::get_font("verdana",
> "bold");
> $dompdf->page_text(200, 16, "{PAGE_NUM} of
> {PAGE_COUNT}", $font,
> 10, array(0,0,0)); </script>';
> $html .= '</body></html>';
> $dompdf->load_html($html);
> $dompdf->render();
> $dompdf->stream("sample.pdf");
> ?>
>
> regards,
> saeed
>
--
---------------------------------
Greetings from Rene7705,
My free open source webcomponents:
http://code.google.com/u/rene7705/
http://mediabeez.ws/downloads (and demos)
http://www.facebook.com/rene7705
---------------------------------