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
We are going to try this asap. Anyhow I just noticed the variable $ttffile which is defined in the definition files but seems to be never used. Looks like a simliar issue?
Seems that you're right, in this case though it does have a fallback value though, so hopefully problem won't be as severe as with the descriptors. I will fix it anyway, but not today unfortunately.
This line: https://github.com/DocnetUK/tfpdf/blob/master/src/tFPDF/PDF.php#L1033
will include the font definition file which is previously saved with the variable $desc holding the font descriptor keys and values (here). The $desc variable is not used further but the font descriptor is taken from the empty array: https://github.com/DocnetUK/tfpdf/blob/master/src/tFPDF/PDF.php#L1035 then.
This results in corrupted PDF documents.
The text was updated successfully, but these errors were encountered: