Skip to content

Commit 74db776

Browse files
committed
Update handling-document-exceptions.md
1 parent 48edb74 commit 74db776

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/radpdfprocessing/features/handling-document-exceptions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ Since **R2 2020** RadPdfProcessing has an exception handling mechanism. It allow
1313
* __RadFixedDocument.DocumentUnhandledException:__ The event is fired when an exception occurs while loading the document pages. This event can be fired when the document is imported with **OnDemand ReadingMode** and a particular page is loaded after the import.
1414
* **PdfExportSettings.DocumentUnhandledException:** The event is fired when an exception occurs while exporting the document pages. Introduced in **Q1 2025**.
1515

16-
When both events are raised, the __DocumentUnhandledExceptionEventArgs__ argument is passed. This argument contains two properties:
16+
When the events are raised, the __DocumentUnhandledExceptionEventArgs__ argument is passed. This argument contains two properties:
1717
* __Exception:__ Gets the document exception.
1818
* __Handled:__ Gets or sets if the exception should be handled. The default value is *false*.
1919

2020
>note The exception handling mechanism handles exceptions at the very beginning of the import as well. In such a case, the event will be raised and an empty document instance is returned. The exception handling mechanism **does not handle** exceptions while parsing **fonts glyph data** or parsing **images** during document rendering in the UI viewers.
2121
22-
To use this functionality you should handle the __PdfImportSettings.DocumentUnhandledException__ event. The __Handled__ property in the event arguments indicates if the exception is handled by the code in the event handler or the exception should be thrown.
22+
### Using ImportSettings.DocumentUnhandledException event
2323

24-
#### __C# Example 1: Using the DocumentUnhandledException event while loading the entire document__
24+
To use this functionality you should handle the __PdfImportSettings.DocumentUnhandledException__ event. The __Handled__ property in the event arguments indicates if the exception is handled by the code in the event handler or the exception should be thrown.
2525

2626
<snippet id='libraries-pdf-features-handling-exceptions-import-settings'/>
2727

0 commit comments

Comments
 (0)