jzillmann / pdf-to-markdown

A PDF to Markdown converter
https://pdf2md.morethan.io
MIT License
1.17k stars 189 forks source link

[Bug] Unhandled promise error #9

Closed ricktjwong closed 5 years ago

ricktjwong commented 5 years ago

Fix the unhandled promise error by stubbing the document object. This document object does not exist in the CLI tool and causes pdfjs to raise an error.

This fix removes the error, but still fails to propagate the font information to include in the conversion. A new issue will be made to dig deeper.