diff --git a/Document-Processing/PDF/PDF-Viewer/maui/Form-Filling-Edit.md b/Document-Processing/PDF/PDF-Viewer/maui/Form-Filling-Edit.md index 64b4c7868..2bbd11f01 100644 --- a/Document-Processing/PDF/PDF-Viewer/maui/Form-Filling-Edit.md +++ b/Document-Processing/PDF/PDF-Viewer/maui/Form-Filling-Edit.md @@ -207,24 +207,28 @@ foreach (var item in pdfViewer.FormFields) {% endhighlight %} {% endtabs %} -### Flatten all form fields +### Controlling form field editing at the viewer Level -To flatten all form fields in the document, set the FlattenOnSave property for each field: +The `AllowEditFormFields` property is used to control form field editing at the viewer level. By default, editing is enabled, allowing users to interact with all supported form fields. When this property is set to false, all form fields become non-editable, making the document effectively read-only without modifying individual field properties. This behavior applies to all form field types and takes effect immediately on the loaded document. -{% tabs %} -{% highlight c# %} +You can disable editing programmatically using the following: -//Iterate all the form fields and set flatten -foreach (var item in pdfViewer.FormFields) -{ - item.FlattenOnSave = true; -} +{% tabs %} +{% highlight xaml %} + +{% endhighlight %} -{% endhighlight %} +{% highlight c# %} +// Disable form field editing +pdfViewer.AllowEditFormFields = false; +{% endhighlight %} {% endtabs %} -N>This property does not immediately change the UI; it is applied during the save operation. +This property supports dynamic changes at runtime, meaning you can enable or disable form field editing at the viewer level based on requirements, and the changes will be applied instantly. +N>Setting AllowEditFormFields to false does not modify the ReadOnly property of individual form fields. It acts as an additional layer of control, and a field remains non-editable if either its ReadOnly property is true or viewer-level editing is disabled ## See Also - [Form Filling Overview](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/maui/form-filling-overview) - [Form Fields Collection](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/maui/form-filling-collection) diff --git a/Document-Processing/PDF/PDF-Viewer/maui/Magnification.md b/Document-Processing/PDF/PDF-Viewer/maui/Magnification.md index bbf662683..725767fe0 100644 --- a/Document-Processing/PDF/PDF-Viewer/maui/Magnification.md +++ b/Document-Processing/PDF/PDF-Viewer/maui/Magnification.md @@ -153,6 +153,25 @@ PdfViewer.PersistZoomOnPageChange = false; {% endhighlight %} {% endtabs %} +### Enable or Disable Double-Tap Zoom + +The PDF Viewer allows users to zoom in and out of the document using a double-tap gesture. This behavior can be controlled programmatically using the `AllowDoubleTapZoom` property. + +By default, double-tap zoom is enabled, allowing users to quickly zoom into a specific area of the document. You can disable this feature to prevent accidental zooming or to provide a controlled zooming experience. + +{% tabs %} +{% highlight xaml %} + +{% endhighlight %} + +{% highlight c# %} +// Disable double tap zoom +pdfViewer.AllowDoubleTapZoom = false; +{% endhighlight %} +{% endtabs %} + ## See Also - [Scrolling](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/maui/scrolling) - [Page Navigation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/maui/page-navigation) diff --git a/Document-Processing/PDF/PDF-Viewer/maui/Print-a-Document.md b/Document-Processing/PDF/PDF-Viewer/maui/Print-a-Document.md index ac86f5f73..855d9ba01 100644 --- a/Document-Processing/PDF/PDF-Viewer/maui/Print-a-Document.md +++ b/Document-Processing/PDF/PDF-Viewer/maui/Print-a-Document.md @@ -57,6 +57,34 @@ PdfViewer.PrintSettings.PrintQuality = PrintQuality.High; N> The [PrintQuality](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.PrintSettings.html#Syncfusion_Maui_PdfViewer_PrintSettings_PrintQuality) API is only applicable to the Windows platform and does not affect printing on Android, iOS, or macOS. +## Detecting Print Completion with PrintDocumentCompleted + +The `PrintDocumentCompleted` event occurs after a print operation has finished. The event provides a Status property that indicates whether the document was successfully submitted to the printer (PrintStatus.Success) or if the operation was cancelled by the user (PrintStatus.Cancelled). You can use this event to track print outcomes and manage the process accordingly. + +The following example explains how to wire and handle the event. + +{% tabs %} +{% highlight c# %} +void WirePrintDocumentCompletedEvent() +{ + // Wire the PrintDocumentCompleted event of SfPdfViewer. + pdfViewer.PrintDocumentCompleted += OnPrintDocumentCompleted; +} + +private void OnPrintDocumentCompleted(object? sender, PrintDocumentCompletedEventArgs e) +{ + if (e.Status == PrintStatus.Success) + { + Debug.WriteLine("Document printed successfully."); + } + else if (e.Status == PrintStatus.Cancelled) + { + Debug.WriteLine("Print operation was cancelled."); + } +} +{% endhighlight %} +{% endtabs %} + ## Limitations Currently, when printing a document that contains sticky note annotations, the sticky note icon always appears as the default [comment](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.StickyNoteIcon.html#Syncfusion_Maui_PdfViewer_StickyNoteIcon_Comment) icon appearance in the printed document.