dompdf

Unofficial releases:

  • dompdf 0.51#patched 1 – zip archive

    DON'T FORGET TO SET WRITE PERMISSIONS FOR „tmp“ AND „lib/fonts“ DIRECTORIES!

    Changelog:

2008-09-25 18:05 Marty

* testing/: benzina.jpg, resize.php
* www/examples/: rowspan-fix.html

  - added support for resolving image extension from dynamic part of url address
  - fixed bug in rendering of table - not properly working rowspan
  • Czech fonts for dompdf

    #1: Just copy content of archive to folder: lib/fonts to overwrite existing files.

    #2: Make sure you set in dompfc_config­.inc.pdf directive for fonts:

    define(„DOMPDF_DE­FAULT_FONT“, „name-of-font“); to one of these: „times“, „arial“, „verdana“, „courier“

    Example:

$html = 'ščřžýáíé';

// it's neccessary to convert string to iso-8859-2
$html = mb_convert_encoding($html, "iso-8859-2", "utf8");

$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("pdf_file.pdf", array("Attachment" => 1));

Fixes:

  1.1.1 | dompdf – new feature – dynamic images
  1.1.2 | dompdf – rowspan – bug fix


Komentáře / Comments

problem [neregistrovaný]
I got this message after download and install Notice: Undefined variable: ext in D:\xampp\htdocs\dompdf3\include\image_cache.cls.php on line 75 Carlos Ceron carceron@hotmail.com
marty
I've fixed it.
Many thanks [neregistrovaný]
Your solution helped me a lot.
marty
I'm glad to hear that :-)
Hello [neregistrovaný]
I've tried your patch with the following string: š ==> č ==> ř ==> ž ==> ý ==> á ==> í ==> é ==> ü ==> ö => ä and result is: ? ==> ? ==> ? ==> ? ==> ý ==> á ==> í ==> é ==> ü ==> ö => ä I'll be very happy if you could help me.
Czech fonts [neregistrovaný]
Hi, I've tested your czech font files - copied files, set define("DOMPDF_DEFAULT_FONT", "arial"); and used following code $html = ''.'

žščřěíáéóůú

'.''; $html = mb_convert_encoding($html, "iso-8859-2", "utf8"); $dompdf= new DOMPDF(); $dompdf->load_html($html); $dompdf->render(); $dompdf->stream($pagename.".pdf", array("Attachment" => 1)); as written in your short manual. But the result is: ?????íáéó?ú Any idea, how to solve it? Thanks for your work. Pavel Tyl
One more info [neregistrovaný]
In my result PDF are no "?" but other symbols like 3/4, upperindex 1, e with reverse accent, scraped o, i with reverse accent, ...

Hodnocení článku (4.33):