SetupString doesn't work

Hi all!
On PrinteSetup class I want to set a SetupString on linux and mac but it doesn’t work!

How can I resolve?Is there a class?