public void startElement(
                String uri, String localName, String qName, Attributes attributes)
                throws SAXException {

            // Get Spread Metadata
            if ("Spread".equals(localName) || "MasterSpread".equals(localName)) {
                metadata.add("PageCount", attributes.getValue("PageCount"));
            }

            // Trigger processing of content from Spread or Stories
            if ("Content".equals(localName)) {
                inContent = true;
                handler.startElement(XHTMLContentHandler.XHTML, "p", "p", EMPTY_ATTRIBUTES);
            }
        }
Content handler for InDesign Content and Metadata.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/indesign/ContentAndMetadataExtractor.java