|
THPDFDocOutlineObject Class
|
Top Previous Next |
|
THPDFDocOutlineObject는 PDF 문서의 아웃라인 항목 객체를 제공합니다
Unit HPDFDoc.pas
Description 아웃라인을 만들고 관리하고 이동할 때 THPDFDocOutlineObject를 아웃라인 항목 객체로 사용합니다 하위 아웃라인 항목을 끝에 추가하려면 AddChild를, 새 하위 항목이 부모 아래 첫 번째 항목이 되어야 하면 AddChildFirst를 사용하세요
Using example:
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) ); // 현재 페이지의 0,0에 연결된 Outline 블록 추가
HPDF.EndDoc; // Close PDF file finally HPDF.Free; end; end.
|