private void handleShowEmbeddedResources(HSLFSlideShow ss, XHTMLContentHandler xhtml,
                                             boolean outputHtml)
            throws SAXException {
        
        HSLFObjectData[] objectData = ss.getEmbeddedObjects();
        int i = 0;
        for (HSLFObjectData d : objectData) {
            if (processedEmbeddedObjects.contains(d.getExOleObjStg().getPersistId())) {
                continue;
            }
            String filename = d.getFileName();
            if (StringUtils.isBlank(filename)) {
                filename = "UNKNOWN-" + i;
            }
            try (TikaInputStream tis = TikaInputStream.get(d.getInputStream())) {
                if (FileMagic.valueOf(tis) == FileMagic.OLE2) {
                    try (POIFSFileSystem pfs = new POIFSFileSystem(tis)) {
                        //coz ppts can have empty pfs...shrug...
                        //we may need to add more stringent requirements
                        if (pfs.getRoot().getEntryNames().size() < 1) {
                            return;
                        }
                        handleEmbeddedOfficeDoc(pfs.getRoot(), filename, xhtml, outputHtml);
                    }
                } else {
                    boolean shouldProcess = false;
                    try {
                        tis.mark(1);
                        int b = tis.read();
                        shouldProcess = b > -1;
                    } finally {
                        tis.reset();
                    }
                    if (shouldProcess) {
                        handleEmbeddedResource(tis, filename, null, null, xhtml, true);
                    }
                }
            } catch (IOException | TikaException e) {
                EmbeddedDocumentUtil.recordException(e, parentMetadata);
            }
            i++;
        }
    }
This is the catch-all for embedded objects.  If we didn't come across
them in the shapes in the slides, headers/footers, etc, try to
extract them here.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/HSLFExtractor.java