THPDFPara Class

 

THPDFPara

Methoden         Eigenschappen      Overzicht

Top  Vorige  Volgende

THPDFPara levert een alineaobject voor het PDF-document

 

Unit

HPDFDoc.pas

 

Description

Gebruik THPDFPara om uitlijning, bidi-richting, keep-with-next, wees- en weduwenbeperkingen in te stellen tijdens het schrijven van alineatekst

Zie Constrained Streaming Layout voor bestandsondersteunde paginastaging, diagnostische records en PDF/UA-alineahelpers

 

Voorbeeld van gebruik:

 

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 );

procedure TForm1.ParaButtonClick(Sender: TObject);

     HPDF.CurrentPage.SetRGBFillColor ( clBlack );

     HPDF.CurrentParagraph.NewLine;                                           // Line break

     HPDF.CurrentParagraph.NewLine;                                           // Line break

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

     HPDF.AutoLaunch := true;                                  // PDF-bestand wordt automatisch getoond

     HPDF.EndParagraph;                                                             // Close current paragraph

 

     HPDF.EndDoc;                                                                    // Close PDF file

end;