Let me share the third-party app store link so you can find tools that can help you generate a protected file. Since the password-protect PDF generated in QuickBooks is not available, you can use a third-party app.
You can visit this link for the App Store: App Store.
Also, you can go to this forum for Intuit developers. You can ask for guidance about third-party hosting applications: Intuit Developer.