SetEmbeddedFileStrProperty

Document properties

Description

Sets a property of the specified embedded file.

Syntax

Delphi

Function TPDFlib.SetEmbeddedFileStrProperty(Index, Tag: Integer; NewValue: WideString): Integer;

ActiveX

Function PDFlib::SetEmbeddedFileStrProperty(Index As Long, Tag As Long, NewValue As String) As Long

DLL

int DLSetEmbeddedFileStrProperty(int InstanceID, int Index, int Tag, const wchar_t* NewValue);
int DLSetEmbeddedFileStrPropertyA(int InstanceID, int Index, int Tag, const char* NewValue);

Parameters

IndexThe index of the embedded file. Must be a value between 1 and the value returned by EmbeddedFileCount.
Tag1 = File name 2 = MIME type 3 = Creation date 4 = Modification date 5 = Title 7 = Description
NewValueThe new value of the specified property.

Return values

Returns 1 when the property was set. Returns 0 when Index does not identify an embedded file or Tag is not a valid property identifier.