About
THE PROBLEM (Bug 22982) WE ARE SOLVING: PDF creation on mobile fails if the text being rendered contains an emoji. This library (EmojiSwapLib) is a workaround that takes a field reference or htmlText and removes any emojis, replacing them with identical imageSource that mimics the emojis.
The current version now scales the image to match each emoji's text size. Also the previous version attempted to make a test PDF. The current version no longer does this, making it not only faster but also possible to call the emojiSwapLib from inside an "open printing to pdf" block. The library is MIT license so feel free to make it better!
Suggestions and improvement code are most welcome!
