SetOutlineOpenFile
Marcadores
Descrição
Define o item de marcador (bookmark) para abrir um arquivo quando clicado
Sintaxe
Delphi
Function TPDFlib.SetOutlineOpenFile(OutlineID: Integer; Const FileName: WideString): Integer;
ActiveX
Function PDFlib::SetOutlineOpenFile(OutlineID As Long, FileName As String) As Long
DLL
int DLSetOutlineOpenFile(int InstanceID, int OutlineID, const wchar_t * FileName);
Parâmetros
| OutlineID | O ID do marcador conforme retornado pela função NewOutline. Alternativamente, use a função GetOutlineID para obter um ID de marcador válido |
|---|---|
| FileName | The file to open when the outline is clicked. This should be in a specific format. Back slashes should be converted to forward slashes and the drive, if any, should be specified as just the drive letter between forward slashes without a colon. For example, the file "c:\my documents\hello.pdf" should be specified as "/c/my documents/hello.pdf". Relative path names are valid, including paths that include the ".." operator to move up a directory. |
Valores retornados
| 0 | The OutlineID was invalid |
|---|---|
| 1 | O destino do outline foi definido com sucesso |