TPDFlibAttachmentPanel

查看器

描述

TPDFlibAttachmentPanel(单元 Lib\PDFlibViewer.pas)是 TPDFlibViewer 的配套面板,列出所附加文档 /EmbeddedFiles 名称树中的嵌入文件附件,每个附件一行并显示其名称

语法

Delphi

TPDFlibAttachmentPanel = Class(TPDFlibViewerPanel)
  Public
    Function SaveAttachmentToFile(Index: Integer;
      Const DestFileName: WideString): Boolean;
  End;

关键成员

SaveAttachmentToFile把从 0 开始计数的该行背后的嵌入文件写到 DestFileName;索引越界、未附加查看器或文档、或提取失败时返回 False

备注

文档在所附加的查看器中打开时,面板会自动重建各行;行载荷携带着 SaveAttachmentToFile 使用的嵌入文件索引

另请参阅

TPDFlibViewerPanel、TPDFlibViewer、GetEmbeddedFileContentToFile、AddEmbeddedFile