Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Print Button - JavaScript for specific actions

New Here ,
Sep 20, 2021 Sep 20, 2021

I am trying to figure out how to add a JavaScrpit for printing that will allow certain actions. The form is a preprinted color coordinated carbon copy type form, and employer wont accept regular white paper.

 

Print button that will do the folllwing actions:

-Copies: "5"

-Pages to page: "Current"

-Page Size & Handling: "Actual Size"

-Comments & Forms: "Form Fields Only"

**Also include a small picture to print that is uploaded on "Image Field" box

 

If not possible, I'll settle with just being able to print the "Image Field" box, when selecting "Form Field Only" type print.

 

 

TOPICS
Create PDFs , Edit and convert PDFs , How to , JavaScript , PDF forms , Print and prepress
357
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2021 Sep 20, 2021
LATEST

I have figured out some coding, but could use help in the rest.

 

var pp = this.getPrintParams();

pp.NumCopies = 3;

pp.pageHandling = pp.constants.handling.actualsize;

var printRange = [];

printRange.push([0,0]); // print page 1

pp.printRange = printRange;

this.print(pp);

 

still need to add coding for selecting forms fields only and add picture.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines