Description
Method getFonts in PDFStreamEngine does not test for empty streamResourceStack and might throw an EmptyStackException which is not catched (RuntimeException) by calling classes. We have to test for empty stack and return empty map in such cases.