Last Updated: 29 Jan 2021 16:11 by ADMIN
Release LIB 2021.1.201 (1/2/2021)
Created on: 25 Jan 2021 13:28
Category: PDFViewer
Type: Feature Request
PdfViewer: Handle import of documents containing Outlines (Bookmarks) containing Actions with an empty dictionary

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.'

1 comment
Posted on: 29 Jan 2021 16:11


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.

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