GetEmbeddedFileStrProperty
Document properties
Description
Retrieves a string property of the specified embedded file.
Use the SetEmbeddedFileStrProperty function to change the values.
Tag 1 returns the file specification stored in the PDF, not the platform path that was handed to AddEmbeddedFile. ISO 32000-1 §7.11.2 separates the components of a file specification with forward slashes and reads a specification that does not start with one as relative to the PDF itself, so a source file at C:\data\report.csv is stored and read back as /C/data/report.csv. Only the separators are mapped; the component text is passed through unchanged
Syntax
Delphi
Function TPDFlib.GetEmbeddedFileStrProperty(Index, Tag: Integer): WideString;
ActiveX
Function PDFlib::GetEmbeddedFileStrProperty(Index As Long, Tag As Long) As String
DLL
const wchar_t* DLGetEmbeddedFileStrProperty(int InstanceID, int Index, int Tag);
const char* DLGetEmbeddedFileStrPropertyA(int InstanceID, int Index, int Tag);
Parameters
| Index | The index of the embedded file. Must be a value between 1 and the value returned by EmbeddedFileCount. |
|---|---|
| Tag | 1 = File name 2 = MIME type 3 = Creation date 4 = Modification date 5 = Title 7 = Description |
Return values
Returns the text property selected by Tag of the embedded file, or an empty string when the property is not available