|
THPDFDocOutlineObject Class
|
Top Vorige Volgende |
|
THPDFDocOutlineObject levert een outline-itemobject voor het PDF-document.
Unit HPDFDoc.pas
Description Gebruik THPDFDocOutlineObject als outline-itemobject voor het aanmaken, beheren en verplaatsen van outlines Gebruik AddChild om een kind-outline-item toe te voegen, of AddChildFirst wanneer het nieuwe kind het eerste item onder zijn ouder moet worden
Voorbeeld van gebruik:
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) ); // Outlineblok toevoegen, gekoppeld aan 0,0 op de huidige pagina
HPDF.EndDoc; // Close PDF file finally HPDF.Free; end; end.
|