Configuring the Design Center Project > Preparing document preview > Creating an output connector for document preview (optional)

Creating an output connector for document preview (optional)
To use customized drivers or fonts when previewing documents, you must manually create and select all preview output connectors in the Project.
Note:
Which output connector?
If you want to use the same driver and settings for preview and output, you can use the same output connector for both preview and output. At a preview service request, the actual connector is not invoked – only the driver is applied.
If you cannot use the same connector, you must create a separate preview output connector. For example, a NULL Connector.
Prerequisites and recommendations
Use default preview connectors must be cleared in the Runtime Message settings dialog box. See Service-enabling the Message.
In the Platform configuration, output mode Job must be selected and output queues must be configured.
For PDF drivers, we recommend that you select Use compression: Yes for performance reasons.
To create a preview output connector
To select a preview output connector
IsPreview()
GetPreviewType()
GetRequestedPreviewContentType()
For detailed information, see Preview functions in the Scripting Reference.
Example 5
IsPreview checks if the current job is a preview job and GetPreviewType returns a number that states that the preview job is invoked from Composition Center. In this case, a NULL Connector named Preview is selected.
if (IsPreview())
{
	   if(GetPreviewType () = 1)
	   {
   		$connector = "Preview";
		   }
 
OpenText StreamServe 5.6 Updated: 2013-03-01