ZF-2466: $pds->pages[2]->drawtext () with accentuation not possible on linux

Issue Type: Bug Created: 2008-01-22T15:56:10.000+0000 Last Updated: 2008-03-31T16:12:00.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Bertrand Bonnefoy (berty) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Pdf

Related issues: Attachments:


Hi, I use drawText(é) on my pc with xp it's work fine. I use on my serveur the same page it's doesn't work no letter with accentuation ar'ent print. Maybe It's look like this bug ZF-2387 Thank's, my soft works in production. Berty

require_once 'Zend/Pdf.php'; $pdf = new Zend_Pdf(); $font = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA_BOLD); foreach ($this->aff->GetIdListeInscrit() as $idsta){ $inscrit=$this->aff->evaluation[$idsta]; $pdf->pages[$idsta] = $pdf->newPage(Zend_Pdf_Page::SIZE_A4_LANDSCAPE);); $pdf->pages[$idsta]->setFont($font, 13); $pdf->pages[$idsta]->drawText('éae', mm2inch(34), mm2inch(83)); } }

header("Content-Disposition: attachment; filename=".$fichier); header("Expires: 0"); header("Content-type: application/pdf"); header('Pragma: cache'); header('Cache-control: private'); // IE BUG echo $pdf->render();


Posted by Bertrand Bonnefoy (berty) on 2008-01-24T04:40:35.000+0000

Sorry it's not a bug. It's encoding worries. $pdf->pages[$idsta]->drawText('éae',mm2inch(34), mm2inch(83),'ISO-8859-1'); I try too find to encode all document.

Posted by Alexander Veremyev (alexander) on 2008-02-01T17:17:54.000+0000

Hi Bertrand! Yes, it's similar to ZF-2387 issue (encoding problem).

Probably, it's a good reason to extend documentation with more clear explanation of encoding processing...

Posted by Wil Sinclair (wil) on 2008-03-31T16:12:00.000+0000

Please evaluate and categorize as necessary.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.