Skip to content

Commit 9021a1d

Browse files
Merge pull request #3492 from Syncfusion-Content/hotfix/hotfix-v30.1.37
DOCINFRA-2341_merged_using_automation
2 parents b5fe8bb + b97c4a9 commit 9021a1d

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

MAUI/PDF-Viewer/DocumentLoadNotifications.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ private void PdfViewer_DocumentLoaded(object sender, EventArgs e)
4848

4949
## Document load failures
5050

51-
When a document fails to load in the [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html), the users will be notified with a default message prompt by the [DocumentLoadFailed](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html#Syncfusion_Maui_PdfViewer_SfPdfViewer_DocumentLoadFailed) event.
51+
When a document fails to load in the [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html), users are notified with a context-specific error message via the [DocumentLoadFailed](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html#Syncfusion_Maui_PdfViewer_SfPdfViewer_DocumentLoadFailed) event. This event helps developers identify the cause of the failure and implement custom error handling for a smoother user experience.
5252

5353
### Document load failed event
5454

55-
The [DocumentLoadFailed](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html#Syncfusion_Maui_PdfViewer_SfPdfViewer_DocumentLoadFailed) event triggers when the document loading fails in the [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html). That is,
56-
* When any corrupted document is loaded.
57-
* When any password-protected document is loaded with an invalid or empty password.
58-
* When any non-PDF document is loaded.
59-
* When a PDF containing an XFA form is loaded.
55+
The [DocumentLoadFailed](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html#Syncfusion_Maui_PdfViewer_SfPdfViewer_DocumentLoadFailed) event alerts users when a document fails to load in the [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html) due to one of the following conditions:
56+
* A corrupted document is loaded.
57+
* A password-protected document is provided with an invalid or empty password.
58+
* A non-PDF file is attempted to be loaded.
59+
* The document contains an XFA form, which is currently unsupported.
60+
* Exceptions occur during PDF loading or page rendering due to limitations or issues in platform-specific native PDF renderers.
6061

6162
The [DocumentLoadFailedEventArgs](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.DocumentLoadFailedEventArgs.html) will return the error [Message](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.DocumentLoadFailedEventArgs.html#Syncfusion_Maui_PdfViewer_DocumentLoadFailedEventArgs_Message) and [Exception](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.DocumentLoadFailedEventArgs.html#Syncfusion_Maui_PdfViewer_DocumentLoadFailedEventArgs_Exception) details for the failure. The following code example explains the same.
6263

@@ -105,4 +106,4 @@ private void PdfDocumentLoadFailed(object sender, DocumentLoadFailedEventArgs e)
105106
}
106107

107108
{% endhighlight %}
108-
{% endtabs %}
109+
{% endtabs %}

MAUI/PDF-Viewer/Localization.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,4 +607,12 @@ The following table contains the default name and value details used in the SfPd
607607
<td>CreateSignature</td>
608608
<td>Create Signature</td>
609609
</tr>
610+
<tr>
611+
<td>XFAFormNotSupportedMessage</td>
612+
<td>This PDF cannot be loaded because it contains an XFA form.</td>
613+
</tr>
614+
<tr>
615+
<td>InvalidPasswordError</td>
616+
<td>Can't open an encrypted document. The password is invalid.</td>
617+
</tr>
610618
</table>

0 commit comments

Comments
 (0)