THPDFPara Class

 

THPDFPara

מתודות         מאפיינים      סקירה

למעלה  הקודם  הבא

THPDFPara provides a paragraph object for the PDF document

 

Unit

HPDFDoc.pas

 

תיאור

השתמש ב-THPDFPara כדי להגדיר justification ולתפעל טקסט paragraph

 

דוגמת שימוש:

 

uses

  ...

  HPDFDoc,

  ...

 

type

   ...

      HPDF: THotPDF;

   ...

 

procedure TForm1.ParaButtonClick(Sender: TObject);

var

     ParaIndex: Integer;

begin

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

     HPDF.FileName := 'ParaDemo.pdf';

     HPDF.BeginDoc;                                                      // Create PDF file 

 

     ParaIndex := HPDF.CreateParagraph( 20, jtLeft, 60, 60, 30, 30  ); // Create paragraph

 

     HPDF.ParaAutoAddPage := true;   // Paragraph will add pages automatically

     HPDF.BeginParagraph( ParaIndex );                                        // Open  main paragraph

     HPDF.CurrentPage.SetFont( 'Arial', [fsBold], 14  );                   // Set the paragraph font

     HPDF.CurrentParagraph.Justification := jtCenter;                     // Set Center paragraph justification

     HPDF.CurrentPage.SetRGBFillColor ( clGray );

HPDF.CurrentParagraph.ShowText('HotPDF היא ספריית יצירת PDF עבור Delphi ו-C++Builder. HotPDF אינה משתמשת ב-DLL או בתוכנה אחרת כדי ליצור קובצי PDF. ההפצה של HotPDF כוללת מערכת עזרה מלאה ותוכניות demo רבות');

     HPDF.CurrentPage.SetRGBFillColor ( clBlack );

     HPDF.CurrentParagraph.NewLine;                                           // Line break

     HPDF.CurrentParagraph.NewLine;                                           // Line break

     HPDF.CurrentParagraph.Justification := jtLeft;                         // Set Left paragraph justification

HPDF.CurrentParagraph.ShowText('HotPDF היא ספריית יצירת PDF עבור Delphi ו-C++Builder. HotPDF אינה משתמשת ב-DLL או בתוכנה אחרת כדי ליצור קובצי PDF. ההפצה של HotPDF כוללת מערכת עזרה מלאה ותוכניות demo רבות');

     HPDF.EndParagraph;                                                             // Close current paragraph

 

     HPDF.EndDoc;                                                                    // Close PDF file

end;