-
Notifications
You must be signed in to change notification settings - Fork 31
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
Emoji support #13
Comments
Hi! |
@AmirTugi at what point do I call...
module.exports = async(data, file_path) => {
const styleOptions = {
// Get relative path from cwd to the desired file
file: path.resolve(__dirname, 'style.scss')
};
// Get relative path from cwd to the desired file
const htmlTemplatePath = path.resolve(__dirname, file_path);
const pdfOptions = {
format: 'A4',
printBackground: true
};
const teaSchoolOptions = {
styleOptions,
htmlTemplatePath,
htmlTemplateOptions: data,
pdfOptions
};
// We just wait for the pdf to generate, and then the program can exit
return TeaSchool.generatePdf(teaSchoolOptions);
}; |
#12 proved helpful thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @AmirTugi I'm printing something that involves emojis.
They come out mangled like this
do I have to make any adjustments to the config, like encoding settings, since emojis are supposed to be unicode.
The emojis were ❎
The text was updated successfully, but these errors were encountered: