@Override
        public void endElement(String uri, String localName, String qName) throws SAXException {
            if (inRenditionLayout && "meta".equals(localName)) {
                String layout = sb.toString();
                if ("pre-paginated".equals(layout)) {
                    metadata.set(Epub.RENDITION_LAYOUT, "pre-paginated");
                }
                inRenditionLayout = false;
                sb.setLength(0);
            }
        }
Use this to parse the .opf files
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/OPFParser.java