Hello,
I found a sample called "TaggedPdfWithStructureElements" and began to go through that. I noticed in that sample that the Tag property of the Document object was set to a new TagOptions() class. If I add it to my Document object I get a StackOverflowException when debugging, and when not debugging it completely closes down my IIS application pool.
I create my document as follows:
1 - Instantiate main MergeDocument object
2 - Generate pages and store in Generic list of Pages
3 - Assemble all pages and add into Document.Pages page list
4 - Draw Document to MemoryStream **** This is where it overflows
5 - Create PdfDocument from MemoryStream
6 - Append an introduction document to my main MergeDocument
7 - Append generated pages from #4 above to main MergeDocument
If I add in the TagOptions to my main MergeDocument it doesn't tag my generated pages content, just my introduction pages (which are from MS Word). If I remove the TagOptions from the main MergeDocument and instead add it to the generated Document object it overflows.
How can I find out what I am doing wrong? I'm having difficulty finding much about the tagging/accessibility in the help library.
Thank you for your time!
Matt L.