Why is ElementReader not extracting images/text for this document? (Form XObject issue)


My code doesn't seems to be getting the standard text and image info
when extracting data from one document.

To get text does the standard:
    while ((element = pageElementReader.Next()) != NULL)
        int type = element->GetType();
        if (element->GetType() == Element::e_text)

To get images my code test for the standard:
    case Element::e_image:

There is nothing unusual with the sample file you sent. Most likely
the problem is that you are not processing form XObject-s. Form
XObjects represent a list of PDF elements that can be reused in
different pages. For examples, of how to process 'Element::e_form'
elements, please see ElementReader and TextExtract sample projects