How to check whether loaded PDF document is edited in UWP PDF Viewer

14 Aug 20261 minute to read

The IsDocumentEdited property is a bindable property that returns a value that indicates whether the PDF is edited or not.

This property will be true when any annotations or form fields values are changed in the loaded PDF document. It will be reset to false when the PDF is saved. The undo and redo operations that change the annotations or form fields from their respective states at the time of saving will also set this property to true.

Refer to the following code example.

//Retreives the value indicating whether the PDF document is edited
 <Grid Loaded="Grid_Loaded">    
    <syncfusion:SfPdfViewerControl Grid.Row="1" x:Name="pdfViewer" IsDocumentEdited="{Binding DocumentEdited}" />
 </Grid>

The default value is false.

See Also