THPDFPara Class

 

THPDFPara

Methods         Properties      Resumen

Top  Previous  Next

THPDFPara proporciona un objeto de párrafo para el documento PDF

 

Unidad

HPDFDoc.pas

 

Descripción

Use THPDFPara para asignar justificación, dirección bidi, restricciones de mantener-con-siguiente, huérfanas y viudas mientras escribe el texto del párrafo

Véase Disposición de streaming con restricciones para el montaje de páginas respaldado por archivo, los registros de diagnóstico y los helpers de párrafos PDF/UA

 

Ejemplo de uso:

 

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;                                                      // Crear el archivo PDF 

 

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

 

     HPDF.ParaAutoAddPage := true;   // El párrafo añadirá páginas automáticamente

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

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

     HPDF.CurrentParagraph.Justification := jtCenter;                     Establece justificación de párrafo centrada

     HPDF.CurrentPage.SetRGBFillColor ( clGray );

     HPDF.CurrentParagraph.ShowText( 'VCL component for Delphi for creating PDF documents.' ); // Imprimir el texto del párrafo

     HPDF.CurrentPage.SetRGBFillColor ( clBlack );

     HPDF.CurrentParagraph.NewLine;                                           Salto de línea

     HPDF.CurrentParagraph.NewLine;                                           Salto de línea

     HPDF.CurrentParagraph.Justification := jtLeft;                         Establece justificación de párrafo a la izquierda

     HPDF.CurrentParagraph.ShowText ( 'HotPDF is PDF Creation Library for Delphi & C++Builder.' ); // Imprimir el texto del párrafo

     HPDF.EndParagraph;                                                             Cierra el párrafo actual

 

     HPDF.EndDoc;                                                                    Cierra el archivo PDF

end;