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

Improve the instructions and code for the pdf2png example #9618

Merged
merged 1 commit into from
Apr 1, 2018

Conversation

timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented Apr 1, 2018

We need to pass disableFontFace and nativeImageDecoderSupport because Node.js has no native support for @font-face and Image. Doing so makes it possible to render e.g., the Tracemonkey paper, which failed before. I made this PDF file the default because it's also the default in other examples/demos and because it showcases the possibilities better than the very simple hello world PDF file.

Building the library with gulp dist-install is easier and is already recommended in the other examples.

Together with #9588, this:

Fixes #9603
Fixes #9387
Fixes #8489

We need to pass `disableFontFace` and `nativeImageDecoderSupport`
because Node.js has no native support for `@font-face` and `Image`.
Doing so makes it possible to render e.g., the Tracemonkey paper, which
failed before. I made this PDF file the default because it's also the
default in other examples/demos and because it showcases the
possibilities better than the very simple hello world PDF file.

Building the library with `gulp dist-install` is easier and is already
recommended in the other examples.
@timvandermeij timvandermeij merged commit 57e8676 into mozilla:master Apr 1, 2018
@timvandermeij timvandermeij deleted the node-example branch April 1, 2018 10:57
@timvandermeij
Copy link
Contributor Author

Trivial since it only touches the examples.

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Improve the instructions and code for the `pdf2png` example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant