Press Windows key + R
Type: control printers
Hit Enter
Select the Microsoft Print to PDF printer
Click the Security tab.
Select the Everyone user group.
(Optional) If the Everyone group is not in the list:
Click the Add button.
Enter Everyone in the field and click Check Names.
Click OK.
In the Allow column, select Print (place a check mark in that row), and click OK.
Now navigate to C:\Windows\System32\spool in Windows Explorer.
Right-click on Printers and choose Properties.
Click the Security tab.
Click Edit.
Click Add.
Type Local Service and press Enter.
Make sure Local Service has Full Control, then press OK.
Open QuickBooks and try to create a .pdf file.