DACapturePageEx

פונקציונליות גישה ישירה, מניפולציה של עמודים

תיאור

לוכד את העמוד המצוין ממסמך שנפתח במקור באמצעות DAOpenFile; העמוד הלכוד מוסתר, אך ניתן אחר כך לצייר אותו על כל עמוד אחר באמצעות הפונקציה DADrawCapturedPage; את ה-"media box" של העמוד משתמשים בתור המלבן התוחם של עמוד הלכידה; את הפונקציה DACapturePageEx ניתן להשתמש במקרים שבהם יש להשתמש ב-"crop box" של העמוד במקום

תחביר

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);

פרמטרים

FileHandlehandle שהוחזר על ידי הפונקציות DAOpenFile, DAOpenFileReadOnly או DAOpenFromStream
PageRefהפניה לדף שהוחזרה על ידי הפונקציות DAFindPage או DANewPage
Options0 = Use the page's media box for the bounding rectangle 1 = Use the page's crop box for the bounding rectangle if it has one, otherwise use the media box 2 = Use the page's bleed box for the bounding rectangle if it has one, otherwise use the crop box 3 = Use the page's trim box for the bounding rectangle if it has one, otherwise use the crop box 4 = Use the page's art box for the bounding rectangle if it has one, otherwise use the crop box

ערכי החזרה

0ה-FileHandle או ה-PageRef שצוינו אינם חוקיים, או שהדף שצוין הוא הדף היחיד במסמך
Non-zeroמזהה שאפשר להשתמש בו עם הפונקציה DADrawCapturedPage