How to set up JavaScript to silently print first page and fourth page of a PDF document?

Community Beginner ,
Jan 17, 2017

Copy link to clipboard

Copied

Dear,

What is the JavaScript code to silently print first and fourth page of a PDF document?

My PDF file has 7 pages but I want to create Print Button for printing only first and fourth pages.

Kind regards

TOPICS
Acrobat SDK and JavaScript

Views

968

Likes

Translate

Translate

Report

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

How to set up JavaScript to silently print first page and fourth page of a PDF document?

Community Beginner ,
Jan 17, 2017

Copy link to clipboard

Copied

Dear,

What is the JavaScript code to silently print first and fourth page of a PDF document?

My PDF file has 7 pages but I want to create Print Button for printing only first and fourth pages.

Kind regards

TOPICS
Acrobat SDK and JavaScript

Views

969

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 17, 2017 0
Adobe Community Professional ,
Jun 29, 2017

Copy link to clipboard

Copied

Adobe considers this a security risk. If anyone could silently print a form without the user's knowledge then personal information could easily be stolen. You should be aware that a computer can print to any printer on a network or on the internet.

For you do this a special folder level script needs to be added to you computer and each users computer. You can then call this script from your form.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 29, 2017 1
Adobe Community Professional ,
Jul 01, 2017

Copy link to clipboard

Copied

One can almost "silently" print from a document: user will only see an alert box asking him to allow or not the printing, but he will not see the Print dialog box and cannot edit any settings.

If this is what you are looking for.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 01, 2017 0
New Here ,
Jan 20, 2020

Copy link to clipboard

Copied

how can I do it. I want a button and print direcly. can you tell me how do it with javascript

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 20, 2020 0
try67 LATEST
Most Valuable Participant ,
Jan 20, 2020

Copy link to clipboard

Copied

Read the documentation of the print method of the Document object as well as the PrintParams object.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 20, 2020 0