You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to call $currentpage->getDetails(); with a pdf contains an emoji html code, I have this error :
Object of class Smalot\PdfParser\Header could not be converted to string
it's happening in Font.php file, when function getName return "[Unknown]";
Code
I fix this error replacing the code by :
$details['Encoding'] = $this->getName() != "[Unknown]" ? ($this->has('Encoding') ? (string) $this->get('Encoding') : 'Ansi') : 'Ansi';
Description:
When trying to call $currentpage->getDetails(); with a pdf contains an emoji html code, I have this error :
Object of class Smalot\PdfParser\Header could not be converted to string
it's happening in Font.php file, when function getName return "[Unknown]";
Code
I fix this error replacing the code by :
$details['Encoding'] = $this->getName() != "[Unknown]" ? ($this->has('Encoding') ? (string) $this->get('Encoding') : 'Ansi') : 'Ansi';
Is that possible to check this,
Best Regards.
file-test.pdf
The text was updated successfully, but these errors were encountered: