Details
Description
Open the attached file in PDFDebugger and compare to the Adobe Reader or Foxit. The problem is in saving/restoring the graphics state inside text object (which should be allowed according to the documentation and text matrices should be part of the graphics state).
Therefore I propose the solution to move PDFStreamEngine.textMatrix and PDFStreamEngine.textLineMatrix into PDGraphicsState.