ImageEn, unit iexUserInteractions

TIEPdfViewer.DocModified

TIEPdfViewer.DocModified


Declaration

property DocModified: Boolean;


Description

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

Note: Changes to document forms will affect FormModified


Demos

Demo  Demos\PDF\PDFViewer\PdfViewer.dpr
Demo  Demos\PDF\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
AddPage
DeletePages
ImportPages
MovePages