Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Print-Script: print as PDF and open document

Avatar

Avatar
Validate 1
Level 1
sdfng3zz24h3
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
sdfng3zz24h3
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
sdfng3zz24h3
Level 1

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
Validate 1
Level 2
akgrimes
Level 2

Likes

5 likes

Total Posts

52 posts

Correct Reply

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

Avatar
Validate 1
Level 2
akgrimes
Level 2

Likes

5 likes

Total Posts

52 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
akgrimes
Level 2

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
Validate 1
Level 2
akgrimes
Level 2

Likes

5 likes

Total Posts

52 posts

Correct Reply

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

Avatar
Validate 1
Level 2
akgrimes
Level 2

Likes

5 likes

Total Posts

52 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
akgrimes
Level 2

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
Validate 1
Level 1
sdfng3zz24h3
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
sdfng3zz24h3
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
sdfng3zz24h3
Level 1

01-08-2017

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

Avatar

Avatar
Validate 1
Level 1
sdfng3zz24h3
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
sdfng3zz24h3
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
sdfng3zz24h3
Level 1

26-07-2017

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

Avatar

Avatar
Validate 1
Level 2
akgrimes
Level 2

Likes

5 likes

Total Posts

52 posts

Correct Reply

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

Avatar
Validate 1
Level 2
akgrimes
Level 2

Likes

5 likes

Total Posts

52 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
akgrimes
Level 2

21-07-2017

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