Page 1 of 1
Report PDF size issue
Posted: Sun Dec 08, 2019 2:40 am
by wbadoy
Good day,
I am a first time user of nuBuilder and i finding this to be a great development software. I am now trying to create reports and i noticed whenever i change the report properties settings for paper size, the pdf printout stays A4. I tried legal paper with portrait orientation and when i run the report, it gave me two A4 pages.
Can you enlighten me as to how is this happening?
Thank you very much for nuBuilder <3
Re: Report PDF size issue
Posted: Sun Dec 08, 2019 9:40 am
by Janusz
Hi,
Recently I had an issue with pdf reports - long text was not wrapped on the printout.
After replacing the nuBuilder tcpdf folder by the latest tcpdf from:
https://sourceforge.net/projects/tcpdf/
that problem disappeared.
Additionally I had to copy the /tcpdf/fonts folder from original nuBuilder tcpdf folder to the downloaded version.
to summarise:
1. rename tcpdf to tcpdf.original
2. download from SourceForge the latest version unpack and copy to tcpdf folder
3. copy tcpdf.original/fonts to tcpdf/fonts
I do not know if it helps in your case - but it's a simple try.
Re: Report PDF size issue
Posted: Sun Dec 08, 2019 12:36 pm
by wbadoy
Thank you but unfortunately it didnt work

nurunpdf.php is reading the correct paper size but the render is wrong.
A letter sized paper will show in an A4 preview with cropped portions. The legal sized paper will show two A4 pages.
Maybe this is a PHP issue? I'm using php5.5.12.
Anybody, what versions are your Php, MySQL, and Apache?
Re: Report PDF size issue
Posted: Sun Dec 08, 2019 4:44 pm
by Janusz
fyi
apache2 2.4.38-3+deb10u3
PHP 7.3.12-1+0~20191128.49+debian10
mysql Ver 15.1 Distrib 10.4.10-MariaDB, for debian-linux-gnu
Re: Report PDF size issue
Posted: Tue Dec 10, 2019 7:27 am
by wbadoy
thank you. i will try and emulate your build for now.