How to disable save option in pdf using javascript

I want to save web page directly how to disable save option in pdf using javascript PDF. 35a7 7 0 1 1 1. 9 2 2 2h16a2 2 0 0 0 2-2v-4.

44A2 2 0 0 0 15. 68A1 1 0 0 1 5. 12a1 1 0 0 1 . M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm. 69a4 4 0 0 0-. 29 0 0 1 1. 34 0 0 0 .

8 0 0 0 2. 07A8 8 0 0 0 8. 8 0 0 1 0-3. 83a8 8 0 0 0 0 7. 3A8 8 0 0 0 1.

77 0 0 1 4. But it gives me option for print or save the page as PDF. But what I want is when I click on the button, it directly save the page as PDF not showing any option. Thanks in advance for helping. This question appears to be off-topic. Stack Overflow as they tend to attract opinionated answers and spam. Use comments to ask for more information or suggest improvements.

Avoid answering questions in comments. The short answer is no, you cannot prevent users from seeing the option in their browser using just javascript. Use that page to convert the image to a PDF, and have it output the file as a download. The above headers will cause the file to automatically be downloaded. Use a library to convert the image to a PDF here. Feel free to Google others, especially if you’re not using PHP.

Facebook Comments