I use iText7 to generate a PDF and then open it in a new tab. Community Bot 1 1 1 silver badge. If anyone uses a limited PDF viewer, he shall be limited. I'd be happy with a solution that works for the Adobe Reader. I merely asked because here are so many questions by people who based on a proof-of-concept with Adobe Reader JavaScript enabled promised their respective customer a functionality working on every PDF viewer and configuration Add a comment. Active Oldest Votes.
S, PdfName. JavaScript ; printAction. JS, new PdfString "this. Alexey Subach Alexey Subach Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
Introducing Content Health, a new way to keep the knowledge base up-to-date. Podcast what if you could invest in your favorite developer? Featured on Meta. You can tie Acrobat JavaScript code to a specific PDF document, a page, field, or button within that document, or a field or button within the PDF file, and even to a user action. Open in Adobe Acrobat. Then a dialog box pops up. There will be this. Just press delete botton in the dialog box and save.
The easiest way to solve this is to simply print the file to another PDF file, and name it something slightly different than the original. That will remove the printing prompt from automatically opening.
With a PDF this same problem had been happening to for me, I was able to make the necessary alterations without Acrobat. I opened the the PDF in a text editor. As noted by Kazark there was a line with "this. I simply deleted the line, and that fixed the problem. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Asked 10 years, 8 months ago. Active 5 months ago. Viewed k times. Improve this question. Kit Kit 1, 6 6 gold badges 21 21 silver badges 37 37 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Siim K Siim K 7, 6 6 gold badges 45 45 silver badges 68 68 bronze badges. Added the instructions for deleting the script from the PDF file, from user 's answer as edited by Kazark. This makes one answer tell the whole story.
I was able to apply this solution with Foxit. I opened the file, canceled the printing, turned off the Javascript in the preferences, saved the file, and then when I opened the file again the problem was solved. The fix stuck even when I turned javascript back on again. Kazark 3, 3 3 gold badges 23 23 silver badges 35 35 bronze badges. Can you do this with Adobe Reader, or do you need the full Acrobat version?
0コメント