Fixed #348 - fromHtml method blows pdf graphics stack