THPDFDocOutlineObject クラス

 

トップへ  前へ  次へ

 

THPDFDocOutlineObject は、PDF ドキュメント用のアウトラインアイテムオブジェクトを提供します。

 

ユニット

HPDFDoc.pas

 

説明

アウトラインの作成、管理、移動のためのアイテムオブジェクトとして THPDFDocOutlineObject を使用します。

 

使用例:

 

program Outlines;

{$APPTYPE CONSOLE}

 

uses

SysUtils,

Graphics,

Classes,

HPDFDoc;

 

var

  HPDF: THotPDF;

  OutlineRoot: THPDFDocOutlineObject;

  CurrnetOutline: THPDFDocOutlineObject;

 

begin

  HPDF:= THotPDF.Create(nil);

  try

   HPDF.AutoLaunch := true;             // PDF file will be shown automatically

 

   HPDF.File名前 := 'Outlines.pdf';  

   HPDF.BeginDoc( true );                   // Create PDF file with outlines

 

   OutlineRoot := HPDF.OutlineRoot;      // Get Outlines Root

   CurrnetOutline := OutlineRoot.AddChild( 'Page ' + IntToStr(I - 1) );  // Add Outline block linked to 0,0 in current page

 

   HPDF.EndDoc;                                                                  // Close PDF file

finally

     HPDF.Free;

end;

end.