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
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.
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.
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
Copy link to clipboard
Copied
Read the documentation of the print method of the Document object as well as the PrintParams object.