DACapturePageEx

직접 접근 기능, 페이지 조작

설명

원래 DAOpenFile로 연 문서에서 지정한 페이지를 캡처합니다. 캡처된 페이지는 숨겨지지만 DADrawCapturedPage 함수를 사용하여 다른 페이지에 그릴 수 있습니다. 페이지의 "media box"가 캡처 페이지의 경계 사각형으로 사용됩니다. 페이지의 "crop box"를 사용해야 하는 경우 DACapturePageEx 함수를 사용할 수 있습니다

구문

Delphi

Function TPDFlib.DACapturePageEx(FileHandle, PageRef, Options: Integer): Integer;

ActiveX

Function PDFlib::DACapturePageEx(FileHandle As Long, PageRef As Long, Options As Long) As Long

DLL

int DLDACapturePageEx(int InstanceID, int FileHandle, int PageRef, int Options);

매개변수

FileHandleDAOpenFile, DAOpenFileReadOnly 또는 DAOpenFromStream 함수가 반환한 핸들
PageRefDAFindPage 또는 DANewPage 함수가 반환한 페이지 참조
Options0 = 경계 사각형에 페이지'의 MediaBox 사용 1 = 페이지'의 CropBox가 있으면 사용하고 없으면 MediaBox 사용 2 = 페이지'의 BleedBox가 있으면 사용하고 없으면 CropBox 사용 3 = 페이지'의 TrimBox가 있으면 사용하고 없으면 CropBox 사용 4 = 페이지'의 ArtBox가 있으면 사용하고 없으면 CropBox 사용

반환 값

0지정한 FileHandle 또는 PageRef가 올바르지 않거나 지정한 페이지가 문서의 유일한 페이지입니다
Non-zeroDADrawCapturedPage 함수에서 사용할 수 있는 ID