following my tests, the PDF file becomes accessable if the Windows service is executed by a Windows account and not the local system (standard setting). Probably, the PDF file produced by IEVision inherits the security rights from the service executor. This would also explain why the helper method CreateSearchablePDF works correctly in VCLs executed by Windows users.
For network security issues, I prefer running a Windows service by the local system, thus I should find an alternative way to let IEVision create accessable PDF files with valid security settings. Unfortunately, also TIEVisionSearchablePDFGenerator creates inaccessable PDF files. Do you have any other alternative code examples for creating searchable PDF files with IEVision?
Ale
xequte
Posted - Nov 27 2024 : 14:22:22 Hi Ale
I'm sorry, but I have no experience with Windows Services. Try and narrow down the issue (e.g. make it happen with just a standard TFileStream). That may give some direction.