ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.SyncToBitmap

TIEPdfViewerInteraction.SyncToBitmap


Declaration

procedure SyncToBitmap();


Description

Outputs the current page to IEBitmap.
By default, PdfViewer only renders the PDF document on demand, so IEBitmap will be blank and cannot be saved as an image, copied to the clipboard, etc.

Notes:
- You can enable AutoSync to automatically call SyncToBitmap as needed
- The size of the PDF page as displayed on-screen and when output to bitmap is controlled by IEGlobalSettings().PdfViewerDefaults.DPI


Example

// Copy PDF page to clipboard as an image
ImageEnView1.PdfViewer.SyncToBitmap := True;
ImageEnView1.Proc.CopyToClipboard( iecpFullImage );


See Also

- AutoSync