How to restrict PDF download in ERPNext notifications - view only?

Hi everyone!

I have a doubt - when sending PDFs through ERPNext notifications, how can I restrict users from downloading them?

They should only be able to read/view the PDF, not download or share it.

Currently when I send notifications through ERPNext, it goes with the print format as PDF attachment. But I need users to only view it, not download.

Any ideas on how to achieve this?

Learning new things! Happy to share your knowledge & keep growing together! :rocket:

Thanks in advance!

1 Like

Hi there,

I think this is a fundamental constraint of how web browsers work and not something Frappe/ERPNext will ever be able to solve. If your users are viewing a PDF, itโ€™s already been downloaded to their computers. Preventing them from saving that file would require control over their computer that you donโ€™t have.

You could always send a link to a web-based display of some sort, but again your power is limited. Iโ€™m not aware of anything you can do to prevent them from printing the page or taking a screenshot.

1 Like