When importing a document containing Outlines (Bookmarks) containing Actions with an empty dictionary:
<</Title(Bookmarks)/Parent .../First .../Last .../Prev .../A<<>>/Count ...>
leads to an exception thrown: System.MissingMethodException: 'Cannot create an abstract class.'
Hello,
This item is now completed.
To handle such exceptions, you can attach to the DocumentUnhandledException event:
pdfFormatProvider.ImportSettings.DocumentUnhandledException += ImportSettings_DocumentUnhandledException;
and to check for the specific exception type:
private void ImportSettings_DocumentUnhandledException(object sender, DocumentUnhandledExceptionEventArgs e)
{
if (e.Exception is InvalidActionException)
{
e.Handled = true;
}
}
More information can be found in the Handling Exceptions help article.
Regards,
Peshito
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.