bajtar Posted May 28, 2017 Report Share Posted May 28, 2017 How to make a button for printing in PDF Nitro Pro hiddNitro Community Forumsen "layer" form. https://www.gzs.si/Portals/SN-Javna-Pooblastila/Vsebine/novice-priponke/Potrdilo.pdf Link to comment Share on other sites More sharing options...
bajtar Posted May 28, 2017 Author Report Share Posted May 28, 2017 40 minutes ago, bajtar said: How to make a button for printing in PDF Nitro Pro hiddNitro Community Forumsen "layer" form. https://www.gzs.si/Portals/SN-Javna-Pooblastila/Vsebine/novice-priponke/Potrdilo.pdf Link to comment Share on other sites More sharing options...
Official Nitronaut Leslie Villarin Posted May 31, 2017 Official Nitronaut Report Share Posted May 31, 2017 Hello @bajtar, Thank you for reaching out to us through our Community Forums! Can you please clarify? Did you want to create a button that allows the user to print the form after they are done using it? Link to comment Share on other sites More sharing options...
Burak Boysan Posted June 7, 2017 Report Share Posted June 7, 2017 On 31.05.2017 at 4:56 AM, Leslie V. said: Hello @bajtar, Thank you for reaching out to us through our Community Forums! Can you please clarify? Did you want to create a button that allows the user to print the form after they are done using it? This is what i am trying to do. Can you help on this? Link to comment Share on other sites More sharing options...
Official Nitronaut Leslie Villarin Posted June 12, 2017 Official Nitronaut Report Share Posted June 12, 2017 Hello @Burak Boysan, This is unfortunately not available within the standard features of Nitro Pro but would be available through the use of JavaScript. I have found a sample code online which has worked for us in testing with Nitro Pro 11.Please create a new button by going to Forms > Button. Place the button, right click it and select Properties. On the options tab, select a layout, behavior (such as Push) and apply a label for each state. This will be Print for each of them most likely given the button we're creating but it can be anything you want. On the Actions tab, select Mouse Up as the trigger and the action would be "Run a JavaScript". Click Add action to List... and a window will pop up allowing you to enter some JavaScript code. Please enter the following:this.print(false, this.pageNum, this.pageNum);Once this done, click OK and return to the form to test out the button. Clicking on the button should bring up File > Print. Please note that while Nitro Pro does support some JavaScript functionality, we as a support team do not so, I would recommend checking out further examples online.I hope this helps! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now