You are not logged in.
Pages: 1
hi. there was a problem with the barcode plugin
in addition to the barcode, I need to display the organization name and object ID in the pdf document. and using the following code,
$entityId = $p_params['entities_id'];
$entity = new Entity();
if ($entity->getFromDB($entityId)) {
$entityName = $entity->fields['name']; // Имя организации
} else {
$entityName = 'Не указано';$pdf->selectFont(Plugin::getPhpDir('barcode')."/lib/ezpdf/fonts/php_Arial.afm");
$pdf->ezText('ORG: ' . $entityName, 14, array('justification' => 'left'));
I was able to export the organization name to pdf, but the Cyrillic characters are not displayed correctly in the pdf document. help fix it
i.m using 10.0.15 version of GLPI and 2.71 version of Barcode plugin
Offline
Pages: 1