-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Comments
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:
|
Closing since nothing is broken. Messages "TT: undefined function" are bad font recovery messages. |
@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? |
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. |
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 }); |
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? |
Does the font not render when this font failure occurs or does it default to some system font? |
I get this warning just from loading PDFs in an <iframe> in Firefox. Is there any way for me to suppress this warning? |
The But keep getting another error: Error: Requesting object that isn't resolved yet Verdana_path_P.
at PDFObjects.get (/Users/nur/Devs/node_modules/pdfjs-dist/legacy/build/pdf.js:6032:13) I use this code: const CMAP_PACKED = true
const CMAP_URL = join(__dirname, '../node_modules/pdfjs-dist/cmaps/')
const STANDARD_FONT_DATA_URL = join(__dirname, '../node_modules/pdfjs-dist/standard_fonts/')
const data = new Uint8Array(fs.readFileSync(file))
const pdf = await pdfjs.getDocument({
data,
disableFontFace: true,
stopAtErrors: true,
cMapUrl: CMAP_URL,
cMapPacked: CMAP_PACKED,
standardFontDataUrl: STANDARD_FONT_DATA_URL,
verbosity: 0,
}).promise Did you found something wrong? |
http://www.tcpdf.org/examples/example_045.pdf
Console warnings:
Nothing seems visually broken though.
Windows 7 x64, Firefox 24.0 (HWA on) and PDF.js 0.8.579
The text was updated successfully, but these errors were encountered: