Splitting PDF into multiple HTML pages using bookmarks?

Is this possible? I only see the ability to use the page number.

// Specify to split the output into multiple pages
htmlOptions.SplitIntoPages = true;.

@djd123

You can achieve your requirements by following below steps:

  • Extract Page Number from Bookmarks
  • Create a new PDF with extracted Page:
    Document newDoc = new Document();
    newDoc.Pages.Add(oldDoc.Pages[extractedPageNumber]);
    
  • Convert newly generated PDF into HTML

In case you face any issue, please feel free to let us know.

Thanks Asad!