PDF Editor SDK Windows Service Example
To make the sample working do the following steps:
-
Download and install PDF-XChange Editor SDK http://www.tracker-software.com/product/pdf-xchange-editor-sdk
-
Build the WindowsService1 project.
-
Open Developer Command Prompt with Administrator Priviledges and go to the project bin directory where the PDFEditorSDKWindowsService.exe lies.
-
Execute "installutil PDFEditorSDKWindowsService.exe" command to register the service. You should see the "The Commit phase completed successfully." phrase in the console.
-
Open Task Manager -> go to the Services tab -> click Open Services to open the Services management
-
Look for the PDFEditorSDKWindowsService.
-
Click Start to start the service.
-
Wait for the delay time that you've set (for testing wait for 20 seconds).
-
Click Stop to stop the service.
-
Open the directory from which you've installed the service with the PDFEditorSDKWindowsService.exe file. There shold be a non-empty ServiceStart.txt and ServiceStop.txt files.
-
Open the ServiceStart.txt - it should contain the number of pages in the test document.
-
Open the ServiceStop.txt - it should contain the "Success" word.
-
To uninstall a service use the "installutil /u PDFEditorSDKWindowsService.exe" command.