Creo View MCAD Adapters Guide > Configuring the Creo View Adapter for PDF > Server Controlled Publishing with docworker
Server Controlled Publishing with docworker
When the Visualization server initiates a request to convert documents to PDF format, the server uses the docworker to convert the file in the background. This Visualization server could be a Windchill server or another customized server environment.
The OFFICE (PDF) worker is an important link in achieving the full functionality of the Visualization server. For more information, refer to Visualization Server Definition.
docworker Overview
The OFFICE worker manages the interaction between the Adapter for PDF and the Visualization server. docworker converts the Microsoft Office documents to PDF format used by the Creo View client.
To configure the worker, you must know the Visualization server host name, the port number that the Worker Agent is listening on, and the complete path to the worker script docworker.
To run office worker in service mode on Windows 10 or later, create the following folders under following location:
C:\Windows\SysWOW64\config\systemprofile\Desktop (64-bit Operating Systems only)
C:\Windows\System32\config\systemprofile\Desktop (64-bit Operating Systems only)
* 
See Advanced > Office Publishing Tab for PDF Conversion for a description of the Enable Office Publishing recipe option.
See Article CS179535 for more information.
Microsoft recommends caution when the Office application is automated as part of a server-side environment. To help ensure the stability of the program, it is recommended to run it with access to the desktop. Under certain circumstances, prompt dialogs, which can hang the process, may not be entirely avoidable. For more information, see the Microsoft Support article Considerations for server-side Automation of Office.
Using docworker
* 
Users are strongly advised to first test their docbatch configuration before using the docworker. Troubleshooting docbatch is an easier way of identifying and resolving most issues that will also affect the worker.
The worker script is created in the <setup_directory>, and should be run by the Visualization server when starting the worker.
When configuring the Worker Agent to use this worker, use the following Execute Command:
For Windows:
<setup_directory>/docworker.bat
In our example, this command is:
C:/ptc/doc_setup/docworker.bat
* 
Do not use spaces in the setup directory name. In addition, the .bat extension should be used when the worker is on a Windows machine.
Was this helpful?