🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #219737

Re: Generowanie pdf + polskie znaki

#219737
From: KonKomp
Date: Thu, 16 Jul 2009 14:11
24 lines
1596 bytes
Ok, znalazłem rozwiązanie na tej stronie:
http://bukox.pl/php/dompdf-i-polskie-znakie/

Także zostawiam tu dla potomnych. U mnie to działa ;-)


Jedyne co zrobiłem dodatkowego co nie jest opisane na powyższej stronie,
to w pliku dompdf_config.inc.php zmieniłem definicję na:
define("DOMPDF_DEFAULT_FONT", "arial");
i usunąłem z pliku lib/fonts/dompdf_font_family_cache wszystkie czcionki
zostawiając arialkę, czyli taki wpis:
array (
  'arial' =>
  array (
    'normal' => DOMPDF_FONT_DIR . 'Arial',
    'bold' => DOMPDF_FONT_DIR . 'Arial_Bold',
    'italic' => DOMPDF_FONT_DIR . 'Arial_Italic',
    'bold_italic' => DOMPDF_FONT_DIR . 'Arial_Bold_Italic',
  ),
)


Pozdrawiam
Konki
Technical Details
Message-ID: <h3nces$oo$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <h3n30h$gdp$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: KonKomp <kontakt@konkomp.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: Generowanie pdf + polskie znaki
Date: Thu, 16 Jul 2009 16:11:40 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 24
Message-ID: <h3nces$oo$1@inews.gazeta.pl>
References: <h3n30h$gdp$1@inews.gazeta.pl>
NNTP-Posting-Host: 193.12.244.213
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1247753500 792 193.12.244.213 (16 Jul 2009 14:11:40 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Thu, 16 Jul 2009 14:11:40 +0000 (UTC)
X-User: konkee
X-Antivirus: avast! (VPS 090716-0, 07/16/2009), Outbound message
In-Reply-To: <h3n30h$gdp$1@inews.gazeta.pl>
X-Antivirus-Status: Clean
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit