Skip to main content
Inspiring
Feb 28, 2018 3:57 PM UTC
Answered

Print centered and scale up to 140%

Dear Script users,

I'm having trouble with the getPrintParams​.

This what I want.

This is what I have so far:

var pp = this.getPrintParams(); 

pp.tileScale = .140;

this.print(pp);

But nothing works.

The page has to center and scaled op 140%. Is this even possible with JavaScript?

Greatings!

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Feb 28, 2018 5:12 PM UTC

This property only works if the document is being printed in tiles.

If it's not you can't specify a specific scale value, only a scale setting, like None, Fit, Shrink, etc.

2 replies

Inspiring
Feb 28, 2018 6:41 PM UTC

Ok, thanks for the reply!

I will use an different approach.

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Feb 28, 2018 5:12 PM UTC

This property only works if the document is being printed in tiles.

If it's not you can't specify a specific scale value, only a scale setting, like None, Fit, Shrink, etc.

Translate