I ran into an interesting PDF file which has some custom javascript that triggers the print window function automatically when the file is opened.
The annoyance comes when the file is uploaded into a web app and every time the file is previewed or opened it fires up the print dialog.
The only information I found was about cleaning the file in a PDF creator/reader software or blocking the default print dialog on the page with javascript, but that seems to interfere with normal print options.
Has anyone run into this combination before and found a way to block the print dialog on PDF files (only) without disrupting the usual print options for the browser?