beautypg.com

Ft_smart_document, Ft_smart_document 381 – Kofax DM API User Manual

Page 401

background image

DM API T

OKENS

381

%FT_SMART_DOCUMENT

%FT_SMART_DOCUMENT

This token is used to convert the output stream into a MIME-
encapsulated, aggregate HTML (MHTML) stream. With Internet
Explorer, version 4 or later, the DM Server can send in a single stream
both the HTML document and all referenced images.

Syntax

PCDGetDoc.AddSearchCriteria( _

“FT_SMART_DOCUMENT”, “1”)

Parameters

Usage

Setting

%FT_SMART_DOCUMENT

equal to

“1”

causes the server to

send referenced images with the HTML document. Any other value is
ignored.

Example

'Create a doc object.

pGetDoc = CreateObject("PCDClient.PCDGetDoc.1")


'Check for errors.

checkErrorPortal( pGetDoc )


'Set the DM security token.

pGetDoc.SetDST(strDST)


'Tell server to send referenced images with the HTML document.

pGetDoc.AddSearchCriteria("%FT_SMART_DOCUMENT","1")


'Get the document.

pGetDoc.Execute ()

%FT_SMART_DOCUMENT

The token identifier that instructs the DM
Server to send referenced images in the
same output stream as it uses for the
HTML document.

1

The setting value that activates this
token.