cancel
Showing results for 
Search instead for 
Did you mean: 
daniel_will
Nintex Newbie

Print to PDF with Javascript

Jump to solution

Hello fellow Nintex Admins,

i am testing Nintex Forms Enterprise at the moment, to see how the implemented PDF creation works. The problem is, there seems to be no button binding for this feature and i can only print through the Ribbon Bar. In my form i don't show the Ribbon Bar, so the user can't access the Ribbon Menu Button.

Is there a Nintex JavaScript method to trigger the feature?

Cheers

Daniel

Labels: (3)
Tags (1)
Reply
10 Replies
michaelpetersen
Nintex Newbie

Re: Print to PDF with Javascript

Jump to solution

Hi,

I finally found the code to call.

NWF.FormFiller.PrintToPDF.PrintToPDF();

Regards,

Michael

View solution in original post

Reply
suniltamanekar
Nintex Newbie

Re: Print to PDF with Javascript

Jump to solution

Hi Michael,

Great.  Your solution has solved my issue and efforts also.

CheersSmiley Happy

Sunil

Reply
Automation Master
Automation Master

Re: Print to PDF with Javascript

Jump to solution

Hi team,

Is there an equivalent JavaScript function for Forms Enterprise for o365?

Cheers,

Chris

Reply
twk
Nintex Newbie

Re: Print to PDF with Javascript

Jump to solution

Hi,

I'm in the same boat. I really also hope for a similar solution to forms for o365.

Anybody?

Kind Regards, Rune

0 Kudos
Reply
jonabb
Nintex Newbie

Re: Print to PDF with Javascript

Jump to solution

Hi Michael,

Thanks for this solution. You've solved my issue.

Jon

Reply
sshaffer
Nintex Newbie

Re: Print to PDF with Javascript

Jump to solution

H Michael,

Excuse my ingnorance, but where would I put the code to call that you suggested? (NWF.FormFiller.PrintToPDF.PrintToPDF)

Reply
michaelpetersen
Nintex Newbie

Re: Print to PDF with Javascript

Jump to solution

Hi Susie,

You would create a button and use JavaScript. Then you can put your Javascript on the form in a function

and call that function from your button.

0 Kudos
Reply
sshaffer
Nintex Newbie

Re: Print to PDF with Javascript

Jump to solution

Thank you.  That worked.  For other newbies, here is what I did:

  1. I dragged the Button control onto the form
  2. Double click on the Button
  3. Below is my configuration

Name: I used PrintToPDF

Button Action: Select JavaScript

Button Label: PDF

Appearance

   Visible: Yes

Ribbon

   Show on Ribbon: Yes

Advanced

   Visible when in view mode: Yes

Enable when in View Mode: Yes

Client click: Type - NWF.FormFiller.PrintToPDF.PrintToPDF();

Make other changes as needed or leave default

Save

Publish

Reply
Isabel1126
Nintex Newbie

Re: Print to PDF with Javascript

Jump to solution

Hello,

 

I tried the intruction above but still no file is generated.

There is a loading pop up.. but no pdf file.

 

Im using on premise 2013 version.

 

Thanks in advance Smiley Happy

0 Kudos
Reply