Possible fix for issue #11590

Possible fix for inaccurate PDF output mentioned by issue #11590