PDF Creation from Windows Service and IIS
Posted: Mon May 19, 2025 9:17 am
The problem is whenever we try to create PDF from windows service or IIS the PDF is saved to the windows "system32" folder with name "untitled.pdf".
Attached you can find a demo windows service project (C#), basically derived from the example provided when installing PDF-Xchange.
We have all the properties set for the PDF-Xchange, but the windows service / IIS always saves the file in System32 folder.
We have tried all the options, like for windows service, Longin via network account, admin account, full rights to the path where file has to be saved, added IIS Users permissions to the folder but the result is same.
Using COM Library from the PDF-Xchange, using nuget package both have the same result.
Changing the properties for pdfsaver.exe, full permission for IIS Users, service users also doesn't help.
Any help is appreciated.
Attached you can find a demo windows service project (C#), basically derived from the example provided when installing PDF-Xchange.
We have all the properties set for the PDF-Xchange, but the windows service / IIS always saves the file in System32 folder.
We have tried all the options, like for windows service, Longin via network account, admin account, full rights to the path where file has to be saved, added IIS Users permissions to the folder but the result is same.
Using COM Library from the PDF-Xchange, using nuget package both have the same result.
Changing the properties for pdfsaver.exe, full permission for IIS Users, service users also doesn't help.
Any help is appreciated.