ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.DocModified

TIEPdfViewerInteraction.DocModified


Declaration

property DocModified: Boolean;


Description

Returns true if the document was modified since it was loaded or saved.
The document is modified by importing, moving or deleting pages.

Note: Changes to document forms will affect FormModified


Demos

Demo  Demos\Other\PdfViewer\PdfViewer.dpr
Demo  Demos\Other\PdfViewerToolbar\PdfViewerToolbar.dpr
Demo  Demos\Actions\Actions_PdfViewer\PdfViewer.dpr


Example

if ImageEnView1.PdfViewer.DocModified then
  if MessageDlg( 'Save doc changes?', mtConfirmation, [ mbYes,mbNo ], 0 ) = mrYes then
    ImageEnView1.IO.SaveToFilePDF( ImageEnView1.IO.Params.Filename );


See Also

- FormModified
- DeletePages
- ImportPages
- MovePages