marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

😢😢😢 Emoticons not rendered in pdf #574

Open Pawelh133 opened 4 years ago

Pawelh133 commented 4 years ago

Hi i can see there are emoticons included in my HTML sytnax string but its not displayed in PDF file. any ideas? 😢😢😢 my code:

import * as htmlToPdf from 'html-pdf';

[...]

htmlToPdf.create(html).toStream((err, stream) => {
        if (err !== null) {
          reject(err);
        } else {
          resolve(stream);
        }
      });

html string =

"<p>fsdfsdfsdf😎😍</p>"

renders: image

Icons are missing

LarsVonQualen commented 3 years ago

Hi, i've recently switched to using Puppeteer, which renders emojis just fine 😄 I've outlined an upgrade path here: #601