adapt bill of lading

hello!

at the moment i have a problem when i generate a bill of lading. on the buttom of the document there are two boxes for signatures. why is there in both boxes the following sequence of characters? it is: Für

we use version 3.6.1

is it possible to remove that?

i hope someone can help me!

found the solution. it was a matter of special characters. for any reason special characters sometimes cannot be displayed the right way. so i changed it in the language file.

1 Like

Hello , I have the same problem.
Wich language file did you modify and what?
Can´t find the right file.

Thx, in advance.

vi htdocs/langs/de_DE/main.lang
/Für

Should work as expected - BUT doesn’t …

Som weird UTF8 vs. Font problem???

Best regards

So, here comes a solution I’m using in version 3.8.2 (OS: Linux).

In file … htdocs/core/modules/livraison/doc/pdf_typhon.modules.php locate below function and copy the commented lines (using ‘html_entity_decode’) into your file. Save (and in case of PHP opcache) restart PHP:


/**
         *   Show miscellaneous information (payment mode, payment term, ...)
         *
         *   @param             PDF                     $pdf                    Object PDF
         *   @param             Object          $object                 Object to show
         *   @param             int                     $posy                   Y
         *   @param             Translate       $outputlangs    Langs object
         *   @return    void
         */
        function _tableau_info(&$pdf, $object, $posy, $outputlangs)
        {
                global $conf,$mysoc;
                $default_font_size = pdf_getPDFFontSize($outputlangs);

                $pdf->SetFont('','', $default_font_size);
                $pdf->SetXY($this->marge_gauche, $posy);

                $larg_sign = ($this->page_largeur-$this->marge_gauche-$this->marge_droite)/3;
                $pdf->Rect($this->marge_gauche, $posy + 1, $larg_sign, 25);
                $pdf->SetXY($this->marge_gauche + 2, $posy + 2);
// pag 2015-11-18                
                $pdf->MultiCell($larg_sign,2, html_entity_decode($outputlangs->trans("For")).' '.$outputlangs->convToOutputCharset($mysoc->name).":",'','L');

                $pdf->Rect(2*$larg_sign+$this->marge_gauche, $posy + 1, $larg_sign, 25);
                $pdf->SetXY(2*$larg_sign+$this->marge_gauche + 2, $posy + 2);
// pag 2015-11-18
               $pdf->MultiCell($larg_sign,2, html_entity_decode($outputlangs->trans("ForCustomer")).':','','L');
        }

Best regards