Thanks for your support. I found a solution. I have learned that in order to get the correct page structure added to a new document, I needed to use this:
`(PdfDocument) newDoc.ImportPage((PdfLoadedDocument) doc, (int) pageCounter);`
but I was using this:
`(PdfDocument) newDoc.ImportPage((PdfLoadedDocument) doc, (PdfLoadedPage) page);`
I think the second overloaded parameter is supposed to be PdfPage and not PdfLoadedPage in order to work correctly. It didn't throw and error, but the new document ended up with text that for some reason can't be searched from extractedText on followup processing of a pdf document saved from newDoc.