print dialog

Avatar

Avatar
Boost 1
Level 1
patrick_kälin__
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
patrick_kälin__
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
patrick_kälin__
Level 1

05-03-2017

PastedGraphic-1.png

Problem:

How can i out of a life cycle designer Pdf toggle/set

Print dialog Options?

I want to have  «Anpassen» as set when the print dialog opens.

do i have to do it here (see code below)?
Or is there another way for changing print dialog settings ?

if(xfa.form.execValidate() && validateForm()){

  xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);

}

A. Can anyone gibe me a help?
B. Are some people here skilled in programming for further freelance jobs in this LifeCycle Designer Script Programming?
Please let me know. Thanx 🙂

Regards Patrick

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 4
Mark_Lindberg
Level 4

Likes

8 likes

Total Posts

211 posts

Correct reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 4
Mark_Lindberg
Level 4

Likes

8 likes

Total Posts

211 posts

Correct reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Mark_Lindberg
Level 4

06-03-2017

I believe the information you are looking for can be found in the Acrobat JavaScript Scripting Reference.

http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/Acro6JS.pdf

Specifically, the 'printParams' object - 'pageHandling' object.

Good Luck

Mark

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

06-03-2017

Mark is right, use the Acroforms print() method instead to control the parameters in the print dialog.

http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/AcrobatDC_js_api_reference.pdf#p...

The only difference ist, that you do not use the keyword „this“ but „event.target“.

AcroForms:

var pp = this.getPrintParams();

pp.interactive = pp.constants.interactionLevel.automatic;

pp.printerName = "hp officejet d series";

this.print(pp);

XFA forms:

var pp = event.target.getPrintParams();

pp.interactive = pp.constants.interactionLevel.automatic;

pp.printerName = "hp officejet d series";

event.target.print(pp);