-
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
PDF -> SVG #7901
Comments
The console reports: (node:5841) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: Image is not defined (node:5841) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:5841) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ReferenceError: Image is not defined It's only triggered by this particular PDF file as other files I tested work just fine. Moreover, the file renders when the SVG back-end is used, so this issue appears to be caused by the conversion script. |
+1 |
Patch to fix:
Call stack:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problems to save a PDF to SVG.
Steps to reproduce:
wget https://github.com/coolwanglu/pdf2htmlEX/raw/master/test/browser_tests/fontfile3_opentype.pdf
node ./examples/node/pdf2svg.js /tmp/fontfile3_opentype.pdf
Result:
writeToFile()
is never called - so result directory 'svgdump' remains empty.The text was updated successfully, but these errors were encountered: