You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-10-09 17:08:14

STripper86
Member
Registered: 2024-10-09
Posts: 1

Help vith barcode plugin

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

Board footer

Powered by FluxBB