AnsweredAssumed Answered

SugarPDF page number works in one instance, appears as question marks in other.

Question asked by Artis Plocins on Jun 13, 2018
Latest reply on Jun 13, 2018 by Artis Plocins

I have a SugarPDF template that outputs the page number and number of pages in the footer. It uses a custom font which I bundle with the package, so I don't think that is the issue. Both Sugar instances are On-Site on different, but similar setup servers.


This is how it looks in one instance in the footer (and how it should look):

Page number working


This is how it looks in another instance in the footer:

Page number broken


There are two lines of code in the Footer() method that produce this:

$pageNumberFormat = 'Page '.$this->getAliasNumPage().' of '.$this->getAliasNbPages();
$this->Cell(0, 0, $pageNumberFormat, 0, 0, 'C');


Why am I getting question marks like this?