SetTiffCustomTag()

Description

Sets a custom tiff tag (up to 32 tags). The string to be set in a tag can be base64 encoded.

Syntax

.SetTiffCustomTag(tagIdentifier, content, UseBase64Encoding);

Parameters

<int> tagIdentifier: specifies the identify number of custom tag in the tiff image.
<string> content: the string to be set for this tag. The string will be written to the .tiff file when you save/upload it. If the string is base64 encoded, it'll be decoded when creating the TIFF file.
bool UseBase64Encoding: specifies whether the content is base64 encoded.

Return value

bool

true indicates success. false indicates failure.

When false is returned, check ErrorCode or ErrorString for error information.

Example

DWObject.ClearTiffCustomTag();
DWObject.SetTiffCustomTag(700, "Custom Tiff Tag Value", true); 
DWObject.SaveAsTIFF("C:\\DWT.tiff", 0);

See also

ClearTIFFCustomTag