Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/maui/Form-Filling-Edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,29 @@ Private void customDialogOkButton_Clicked(object sender, EventArgs e)

Button form fields will be rendered in the PDF viewer. But the PDF viewer supports only the `GoTo` actions that navigates to a particular location in the PDF document alone. Other types of button actions are not supported.

### Controlling form field editing at the viewer Level

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.

You can disable editing programmatically using the following:

{% tabs %}
{% highlight xaml %}
<syncfusion:SfPdfViewer
x:Name="PdfViewer"
AllowEditFormFields="False" />
{% endhighlight %}

{% highlight c# %}
// Disable form field editing
pdfViewer.AllowEditFormFields = false;
{% endhighlight %}
{% endtabs %}

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)
Expand Down
19 changes: 19 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/maui/Magnification.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<syncfusion:SfPdfViewer
x:Name="PdfViewer"
AllowDoubleTapZoom="False" />
{% 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)
Expand Down
28 changes: 28 additions & 0 deletions Document-Processing/PDF/PDF-Viewer/maui/Print-a-Document.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down