Expand my Community achievements bar.

Set Page Scaling Default to "Fit to Printable Area" for Web PDF

Avatar

Level 1

Is it possible through a setting or script to set the Page Scaling Default to "Fit to Printable Area" when using the File -> Print  menu?  We have users printing the PDF through the website and we need them to print the document with the "Fit to Printable Area" setting.

Please tell me there is a script for this, otherwise we will have to replace the PDF and move it to a web form.

1 Reply

Avatar

Level 7

I don't think it's possible through the File >> Print menu, but you could do it through a print button on the form itself. The standard print button has a script on it:

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

Parameter 5 (set to 1 on the default button) shrinks the page to fit. For a complete breakdown of all 8 parameters, you can search the LiveCycle Designer help for print. Each parameter is explained.