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.
Fix the unhandled promise error by stubbing the
document
object. Thisdocument
object does not exist in the CLI tool and causespdfjs
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.