Click here to Skip to main content
14,421,274 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello everybody ,

i want to print pdf file that display in embed tag using java script

can help me please ?

best regards ...

What I have tried:

I couldn't find anything to try
Posted
Updated 1-Oct-19 2:18am
Comments
Richard MacCutchan 1-Oct-19 4:17am
   
You can not control printing from the web page. Only the end user can select it.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You can call print on a webpage but I do not believe the pdf viewer has any way of controlling it via JavaScript. Also, there are 100's of different pdf viewers so you would have to write code that works with each of them.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100