Changing sheets page style and width

I am using java api to create pdf from .xslx files. My problem is setting page width. In Format → Page Style-Sheet menu there are Scaling mode options and it seems to be a solution my problem.
Is it possible to set these properties with api?
Or is there any better way to scale pdf width as cloumn width?

thanks in advance.