AddPageMeasureViewport
페이지 속성, 측정 및 좌표 단위
설명
ISO 32000-1 §12.9에 따라 선택된 페이지에 /Subtype /RL measure 딕셔너리를 갖춘 직선형 측정 뷰포트(/VP)를 추가합니다
구문
Delphi
Function AddPageMeasureViewport(Left, Bottom, Right, Top, ScaleRatio: Double; Const UnitLabel, Name: WideString): Integer;ActiveX
Function PDFlib::AddPageMeasureViewport(Left As Double, Bottom As Double, Width As Double, Height As Double, ScaleRatio As Double, UnitLabel As String, Name As String) As LongDLL
int DLAddPageMeasureViewport(int InstanceID, double Left, double Bottom, double Width, double Height, double ScaleRatio, const wchar_t* UnitLabel, const wchar_t* Name);
int DLAddPageMeasureViewportA(int InstanceID, double Left, double Bottom, double Width, double Height, double ScaleRatio, const char* UnitLabel, const char* Name);매개변수
| Left | 뷰포트 경계 상자의 가로 좌표 |
|---|---|
| Bottom | 뷰포트 경계 상자의 세로 좌표 |
| Right | PDF 사용자 공간에서 뷰포트 경계 상자의 절대 오른쪽 좌표(레거시 퍼사드 매개변수 이름 Width) |
| Top | PDF 사용자 공간에서 뷰포트 경계 상자의 절대 위쪽 좌표(레거시 퍼사드 매개변수 이름 Height) |
| ScaleRatio | PDF 사용자 공간 단위당 실제 세계 단위 수(양수여야 함) |
| UnitLabel | 측정 단위 레이블(비워 두면 m이 기본) |
| Name | /Name에 기록되는 선택적 뷰포트 이름 |
반환 값
뷰포트가 추가되면 0이 아닌 뷰포트 핸들, 페이지를 사용할 수 없거나 ScaleRatio가 양수가 아니면 0
비고
DLL과 ActiveX의 Width·Height 레이블은 호환성을 위해 유지되지만 그 값은 크기가 아니라 절대 Right·Top 좌표입니다. 이 메서드는 치수를 검증하지 않습니다
/BBox가 있는 /Type /Viewport 딕셔너리와 /R, /X, /D, /A 숫자 형식 배열을 담은 /Subtype /RL의 /Measure 딕셔너리를 만듭니다
문서 버전이 PDF 1.6 이상이 되도록 자동으로 보장합니다