Print-Script: print as PDF and open document

Avatar

Avatar

sdfng3zz24h3

Avatar

sdfng3zz24h3

sdfng3zz24h3

29-01-2017

Hey 😃

I created some pdf forms where it is very important to preview the pre-print state frequently.

Since there is apparently no solution for a preview button I have another idea:

Is is possible to add a scripted print-button which prints the document as a pdf-file and opens it immedietly?

(It would propably be even better if the pdf-file would be saved to the %temp%-folder.)

I appreciate every help 😃
Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

akgrimes

Avatar

akgrimes

akgrimes

27-07-2017

I used this script and it worked:

  1. var pp = event.target.getPrintParams(); 
  2.     pp.printerName = "Adobe PDF"
  3. event.target.print(pp); 

Answers (4)

Answers (4)

Avatar

Avatar

akgrimes

Avatar

akgrimes

akgrimes

01-08-2017

When you click the button with that script, it opens a print dialog box with Adobe PDF selected as the printer.

Avatar

Avatar

sdfng3zz24h3

Avatar

sdfng3zz24h3

sdfng3zz24h3

01-08-2017

Nice I will give it a try. What exactly is this script doing?

Avatar

Avatar

sdfng3zz24h3

Avatar

sdfng3zz24h3

sdfng3zz24h3

26-07-2017

Sadly I found no way to preview a form in a convenient way.

Avatar

Avatar

akgrimes

Avatar

akgrimes

akgrimes

21-07-2017

Did you ever figure this out? I have a similar question.