THPDFPage.Height 속성

 

THPDFPage.Height

THPDFPage

 

Top  Previous  Next

페이지의 세로 크기를 지정합니다

 

Delphi syntax:

property Height: Single;

 

C++ syntax:

__property float Height;

 

Description

Height 속성으로 페이지 높이를 읽거나 변경합니다

Height는 포인트 단위이며 새 값도 포인트로 받습니다. 그리기 좌표는 1/THotPDF.Resolution 인치이므로, Resolution이 72가 아니면 UserHeight를 읽어 그리는 단위의 페이지 높이를 구하십시오. Height를 설정하면 페이지가 UserDefined로 바뀌고, UserDefined 페이지는 포인트로 그립니다

파일에서 로드한 페이지의 경우 Height를 설정하면 그 페이지 자체의 MediaBox를 기록합니다. 다른 페이지와 공유되는 MediaBox나 숫자들이 별도 객체에 들어 있는 MediaBox는 먼저 이 페이지 전용 사본으로 교체되므로, 다른 페이지와 객체는 원래 값을 유지합니다. 캔버스가 닫힌 페이지에 Height를 설정하면 EHPDFPageClosedError가 발생합니다

 

Code Example

// Creating multi-size pages in a single PDF document
HPDF.AddPage( A4, poPortrait );
Label1.Caption := 'Page 1 = ' + IntToStr( HPDF.CurrentPage.Width ) + 'x' + IntToStr( HPDF.CurrentPage.Height );

HPDF.AddPage( Letter, poLandscape );
Label2.Caption := 'Page 2 = ' + IntToStr( HPDF.CurrentPage.Width ) + 'x' + IntToStr( HPDF.CurrentPage.Height );

 

See also: UserHeight, Width, Size