Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Upgrade nuBuilder 4 to nuBuilder 4.5

Questions related to installing, updating, setting up and configuring
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Unread post 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.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Unread post 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.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Unread post by kev1n »

What is your php version?
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Unread post by kknm »

kev1n wrote:What is your php version?
PHP version: 7.4.16
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Unread post 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.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Unread post 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);
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Upgrade nuBuilder 4 to nuBuilder 4.5

Unread post by kknm »

Thanks - it helped!
Post Reply