|
THPDFPara |
Top Previous Next |
|
THPDFPara는 PDF 문서의 문단 객체를 제공합니다
Unit HPDFDoc.pas
Description 문단 텍스트를 쓰는 동안 THPDFPara로 정렬, bidi 방향, keep-with-next, orphan, widow 제약을 설정합니다 파일 기반 페이지 스테이징, 진단 레코드, PDF/UA 문단 헬퍼에 대해서는 제한된 스트리밍 레이아웃을 참조하세요
Using example:
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( 'VCL component for Delphi for creating PDF documents.' ); // 문단 텍스트 출력 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 is PDF Creation Library for Delphi & C++Builder.' ); // 문단 텍스트 출력 HPDF.EndParagraph; // Close current paragraph
HPDF.EndDoc; // Close PDF file end; |