Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: TT: undefined function #3768

Closed
timvandermeij opened this issue Oct 4, 2013 · 9 comments
Closed

Warning: TT: undefined function #3768

timvandermeij opened this issue Oct 4, 2013 · 9 comments
Labels

Comments

@timvandermeij
Copy link
Contributor

http://www.tcpdf.org/examples/example_045.pdf

Console warnings:

[22:54:50.890] "Warning: TT: undefined function: 8"
[22:54:51.175] "Warning: TT: undefined function: 0"

Nothing seems visually broken though.

Windows 7 x64, Firefox 24.0 (HWA on) and PDF.js 0.8.579

@marcosps
Copy link

marcosps commented Oct 4, 2013

I ca reproduce this too with Ubuntu 12.1, Nightly and pdf.js development

Em 10/04/2013 05:58 PM, Tim van der Meij escreveu:

http://www.tcpdf.org/examples/example_045.pdf

Console warnings:

[22:54:50.890] "Warning: TT: undefined function: 8"
[22:54:51.175] "Warning: TT: undefined function: 0"

Nothing seems visually broken though.

Windows 7 x64, Firefox 24.0 (HWA on) and PDF.js 0.8.579


Reply to this email directly or view it on GitHub
#3768.

@yurydelendik
Copy link
Contributor

Nothing seems visually broken though.

Closing since nothing is broken. Messages "TT: undefined function" are bad font recovery messages.

@KeithHenry
Copy link

@yurydelendik Thanks, took me a while to find out the cause of the unhelpful console log, and your 5 year old comment answers it.

However, should this be in the console at all?

@clecap
Copy link

clecap commented Oct 4, 2019

Just had the same issue and when trying to understand the error message I ended up here.

+1 to @KeithHenry. The error messages is meaningless and confusing. Suggest to make it more meaningful for the end user.

@sam-woodridge
Copy link

Anyone know how to resolve this warning? How do I fix the fonts?

@KeithHenry
Copy link

Anyone know how to resolve this warning? How do I fix the fonts?

@sam-woodridge Either embed the missing fonts in the PDF or install them on the machine running the conversion.

Or, when you get the document you can just ignore errors like this where the PDF will still render, just with fallback fonts:

getDocument({ url, verbosity: 0 });

@andre487
Copy link

What means "bad font recovery messages"? Does it mean that document contains some font that is not provided in the system? And what's happening when this event appears? Something renders wrong or there is fallback to some default font?

Can I debug which font causes this warning?

@Gruski
Copy link

Gruski commented Feb 20, 2024

Does the font not render when this font failure occurs or does it default to some system font?

@JHarrisGTI
Copy link

I get this warning just from loading PDFs in an <iframe> in Firefox. Is there any way for me to suppress this warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants