Page 2 of 2

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Posted: Wed Aug 11, 2021 3:18 pm
by kknm
kev1n wrote:What fonts are you using? There is no extra margin when using some English strings.
Cyrillic in reports is printed only by free fonts like dejavu ... and free ... Of these, only ... mono and ... monoi print correctly, the rest either cut the line, or wrap to another line, or give an error (corrected by increasing the width Fields). In the previous version, this was not observed and the fonts were not mono.

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Posted: Thu Aug 12, 2021 12:34 pm
by kknm
kev1n wrote:What fonts are you using? There is no extra margin when using some English strings.
It seems to me that the report designer incorrectly calculates the column widths for Cyrillic in UT8, doubling the number of characters, because Cyrillic takes 2 bytes per character, unlike English.Now all my reports have gone from portrait to landscape and look awful.

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Posted: Thu Aug 12, 2021 2:46 pm
by kev1n
What is your php version?

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Posted: Thu Aug 12, 2021 4:02 pm
by kknm
kev1n wrote:What is your php version?
PHP version: 7.4.16

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Posted: Fri Aug 13, 2021 11:02 am
by kknm
I returned the old tcpdf folder, but the reporting behavior did not change - the same is wrong. Hence the conclusion that tcpdf has nothing to do with it - the problem is in updating nubuilder.

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Posted: Fri Aug 13, 2021 11:10 am
by kev1n
Also try using the old nurunpdf.php together with the old tcpdf.

https://github.com/nuBuilder/nubuilder4 ... runpdf.php


Adapt the paths to the new locations:

Code: Select all

require_once('libs/tcpdf/tcpdf.php');
define('FPDF_FONTPATH','libs/tcpdf/font/');
if you get an error, also remove these 2 lines:

Code: Select all

  
$label        = str_replace('#description#', $JSON->sre_description, $label);
$label        = str_replace('#code#',        $JSON->sre_code, $label);

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Posted: Fri Aug 13, 2021 12:12 pm
by kknm
Thanks - it helped!