Print centered and scale up to 140%

Feb 28, 2018

Copy link to clipboard

Copied

Dear Script users,

I'm having trouble with the getPrintParams​.

This what I want.

Schermafbeelding 2018-02-28 om 16.51.38.png

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 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.

TOPICS
Acrobat SDK and JavaScript, Macintosh, Windows

Views

199

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Print centered and scale up to 140%

Feb 28, 2018

Copy link to clipboard

Copied

Dear Script users,

I'm having trouble with the getPrintParams​.

This what I want.

Schermafbeelding 2018-02-28 om 16.51.38.png

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 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.

TOPICS
Acrobat SDK and JavaScript, Macintosh, Windows

Views

200

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 28, 2018 0
Feb 28, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 28, 2018 0
Feb 28, 2018

Copy link to clipboard

Copied

Ok, thanks for the reply!

I will use an different approach.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 28, 2018 0