...

Online Help for Chasys Draw IES: SDK - Layer Attachments - NOTE


SDK - Layer Attachments - NOTE
 

Using the NOTE meta-type

The NOTE attachment is used for capturing author notes/comments. It is a null-terminated plain-text (UTF-8) segment consisting of any author notes/comments.

The terminating NULL character must be included for the attachment to be valid.

 

Sample Code

Here's some sample code that creates NOTE metadata:
TAGS: Chasys Draw IES Source Code, Attachment, Metadata, NOTE

int length;
char notes[3072];

... ...

//insert NOTE attachment
length=strlen(notes);
if(length)
{
    data->meta_data=(unsigned char*)notes;
    data->meta_write(data,"NOTE",
length+1); //include terminating NULL
}