DACapturePageEx
Funcionalidade de acesso direto, Manipulação de páginas
Descrição
Captura a página especificada de um documento aberto originalmente com DAOpenFile. A página capturada fica oculta, mas pode então ser desenhada em qualquer outra página usando a função DADrawCapturedPage. O "media box" da página é usado como retângulo delimitador da página capturada. A função DACapturePageEx pode ser usada nos casos em que o "crop box" da página deva ser usado em seu lugar
Sintaxe
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);
Parâmetros
| FileHandle | Um handle retornado pelas funções DAOpenFile, DAOpenFileReadOnly ou DAOpenFromStream |
|---|---|
| PageRef | Uma referência de página retornada pelas funções DAFindPage ou DANewPage |
| Options | 0 = 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 |
Valores retornados
| 0 | O FileHandle ou o PageRef informados não eram válidos, or the specified page was the only page in the document |
|---|---|
| Non-zero | Um ID que pode ser usado com a função DADrawCapturedPage |