DocToPDF with processor Amyuni or ExportDocToPDF is used for converting Microsoft Word documents to PDF. All commands fails with the error:
Invoke of API Document.PrintOut failed: 0x80010001 (Call was rejected by callee). API Document.PrintOut failed: 0x80010001 (Call was rejected by callee). Invoke of API Document.Close failed: 0x80010001 (Call was rejected by callee). Application reported error 0x80010001 for possible retry.
DocToPDF with processor Amyuni is the default PDF convertor in Kofax Communications Manager.
DocToPDF with processor Amyuni or ExportDocToPF make use of Microsoft Word for converting the Word document to PDF. Microsoft Word reports the error to KCM.
This error can occur when the temporary files folder used by Microsoft Word contains many files. When a Microsoft Word document is opened by Microsoft Word, it creates a temporary file. This file is normally deleted when Microsoft Word closes the document. Sometimes, Microsoft Word fails to delete the temporary file. Temporary files are created using a fixed naming scheme by Microsoft Word. If the temp folder contains too many temp files (created by Microsoft Word), this will lead to name conflicts. Every filename that Microsoft Word tries to use already exists. This results in Microsoft Word reporting an error.
When Microsoft Word is used interactively a different temporary files folder is used. In this situation, Microsoft Word will still work as expected when a user opens the document.
Check if the temp folder contains many files.
If it contains over 100 files, then it can become problematic. To clean this folder use the following procedure.
- Open the Word temp folder of the systemprofile in file explorer. (%WINDIR%\System32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\content.word)
- Open command prompt as administrator and prepare the following command (but do not execute it). taskkill /IM winword.exe
- Open PowerShell as administrator and run: stop-service -verbose -DisplayName "*ITP/Server Document Processor*"
- Run the prepared command from step 2: taskkill /IM winword.exe
- Delete all files in %WINDIR%\System32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\content.word
- Run in Powershell start-service -verbose -DisplayName "*ITP/Server Document Processor*"
The folder %WINDIR%\System32\config\systemprofile is a system protected folder. It is normally not possible to immediately access sub folders within this folder. First this folder must be opened to trigger user account control for running File Explorer with sufficient permissions for accessing the systemprofile folder and its subfolders.
The INetCache folder and Content.Word folder are hidden folders and system protected folders. These folders are only visible when "Hide protected operating system files" is disabled and "Show hidden Files" is enabled. Even when these folders are hidden, they can still be accessed by entering the path in the address bar of file explorer.
The reason for only stopping the Document Processors, is to make sure that KCM Core server can still accept new requests. These requests remain in the waiting queue until the Document Processor services are started again. This means these steps can also be safely used during production hours.
Level of Complexity
|Kofax Communications Manager||5.5 and earlier||n/a||n/a||n/a|