Eksportuj HTML do pliku PDF za pomocą ITextsharp

Wypróbowałem poniższy kod, ale mam również błąd. Używam najnowszej biblioteki DLL.

String strSelectUserListBuilder = @"<html><body>
                                <h1>My First Heading</h1>
                                <p>My first paragraph.</p>
                            </body>
                        </html>";

String htmlText = strSelectUserListBuilder.ToString();

List<IElement> htmlarraylist = iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(new StringReader(htmlText), null);

Dostałem ten błąd:

Podany klucz nie był obecny w słowniku.

questionAnswers(2)

yourAnswerToTheQuestion