ImageEn, unit iexUserInteractions |
|
TIEPdfViewerInteraction.AutoSync
Declaration
property AutoSync: Boolean;
Description
Specifies whether
IEBitmap contains a view of the current page.
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.
Set AutoSync to true to ensure
IEBitmap is always a valid representation of the displayed page. It will slighly downgrade performance.
Notes:
- To manually synchronize the page to
IEBitmap, call
SyncToBitmap.
- AutoSync will occur automatically if
MouseInteractGeneral allows selection, i.e. miPdfSelectRgn, miSelect, miSelectPolygon, miSelectCircle, miSelectMagicWand, miSelectLasso, miSelectChromaKey
- The size of the PDF page as displayed on-screen and when output to bitmap is controlled by
IEGlobalSettings().PdfViewerDefaults.DPIDefault: False
Example
// Allow user to select a circular area of page and copy to clipboard (as an image)
ImageEnView1.PdfViewer.AutoSync := True;
ImageEnView1.MouseInteractGeneral := [ miSelectCircle ];
See Also
-
SyncToBitmap