THPDFDocOutlineObject Class

 

맨 위  이전  다음

 

THPDFDocOutlineObject provides an outline item object for the PDF document.

 

유닛

HPDFDoc.pas

 

설명

Outline을 생성, 관리, 이동하기 위한 item object로 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.FileName := '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.