A little history. I was involved in both the original PPT contribution to Apache POI and the initial OOXML support. I managed the developer who did the work.
Later I worked on a project that is still running that converts PDFs into editable object PowerPoints. This is a very difficult space because there were many variations of PDFs from many version of MS Office. While never fully complete the thing works. It’s a big ask. POI supports all of the objects theoretically. More support can be added through Unit tests. We had to take the XMLBeans project out of the Attic. Entity expansion was an issue to be handled and some versions of Office had bugs. It would be a very large effort. Common Crawl has a large set of docs which we could use as tests. An alternative approach we can suggest to the community is the instead see how well MS Office writes ODF files. Best, Dave > On Nov 23, 2026, at 8:09 AM, Pedro F. Giffuni via dev > <[email protected]> wrote: > > Bummer! > Let me copy paste the most relevant points: > AOO OOXML compliance — initial mining report > Source investigation completedRuntime testing pending > Repository: apache/openoffice > Scope: DOCX, XLSX, PPTX; Strict and Transitional > Method: Direct source inspection, repository-wide code searches, > configuration and implementation analysis. > > I found several important things that change how we should organize the > project. In particular, AOO has more OOXML export infrastructure than its > filter configuration initially suggests, but much of it is incomplete or > inaccessible through normal filter registration. > > 1. Executive summary > > | > Area > | > Initial finding > | > | > DOCX import > | > > Implemented > > | > | > DOCX export > | > > Partial > > | > | > XLSX import > | > > Implemented > > | > | > XLSX export > | > > Not functional through OOXML filter > > | > | > PPTX import > | > > Implemented > > | > | > PPTX export > | > > Not functional through OOXML filter > > | > | > Strict OOXML > | > > Major compatibility gaps > > | > | > Transitional OOXML > | > > Partial conformance > > | > | > Shared DrawingML > | > > Substantial implementation > > | > > > These are source-level assessments, not claims of complete standards testing. > > 2. The most important discovery: export is not uniform > > 2.1 Writer — DOCX > > There is a real DOCX export implementation. > > Relevant files: > > - > main/sw/source/filter/ww8/docxexport.cxx > > - > main/sw/source/filter/ww8/docxattributeoutput.cxx > > - > main/sw/source/filter/ww8/docxexportfilter.cxx > > > The implementation registers: > > com.sun.star.comp.Writer.DocxExport > > More interestingly, writerfilter/source/filter/ImportFilter.cxx contains an > export dispatch path: when the WriterFilter receives a source document, it > creates the DOCX exporter and delegates the export operation. > > Sources: > > - > DOCX export filter > > - > DOCX exporter > > - > WriterFilter dispatch > > > However, there are explicit TODOs in docxexport.cxx, including: > > - > OutputTableNode() > > - > OutputGrfNode() > > - > OutputOLENode() > > - > OutputPageSectionBreaks() > > - > Form-field handling > > > This is an important distinction: DOCX export is not simply absent. It has a > partially implemented architecture that deserves its own audit. > > 2.2 Calc — XLSX > > The principal import implementation is: > > main/oox/source/xls/excelfilter.cxx > > The decisive code is: > bool ExcelFilter::importDocument() throw() > { > // Workbook construction and import > } > > bool ExcelFilter::exportDocument() throw() > { > return false; > } > There is also interesting unfinished infrastructure in: > > main/sc/source/filter/excel/xestream.cxx > > This contains XclExpXmlStream, XML stream handling and SaveXml() methods > associated with the existing Excel export record hierarchy. > > However, the OOXML filter's export entry point returns false. I found no > evidence of a functional route connecting this scaffolding to a usable XLSX > export filter. > > Sources: > > - > ExcelFilter > > - > XLSX XML stream infrastructure > > > Recommendation: Investigate whether the existing XLSX serialization > scaffolding can be completed economically before considering a new exporter. > > 2.3 Impress — PPTX > > The equivalent implementation is: > > main/oox/source/ppt/pptimport.cxx > > It also implements both UNO service interfaces, but: > bool PowerPointImport::exportDocument() throw() > { > return false; > } > The older PowerPoint binary exporter is located in: > > main/sd/source/filter/eppt/ > > That implementation should not be confused with a PPTX exporter. > > Sources: > > - > PowerPointImport > > - > Legacy PowerPoint exporter > > > 3. Filter registration audit > > I inspected the three actual configuration fragments. > > | > Filter > | > Registered service > | > Flags > | > | > MS Word 2007 XML > | > com.sun.star.comp.Writer.WriterFilter > | > IMPORT > | > | > Calc MS Excel 2007 XML > | > com.sun.star.comp.oox.xls.ExcelFilter > | > IMPORT > | > | > Impress MS PowerPoint 2007 XML > | > com.sun.star.comp.oox.ppt.PowerPointImport > | > IMPORT > | > > > All three also have ALIEN and 3RDPARTYFILTER; Calc and Impress additionally > have PREFERRED. > > The relevant files are: > > - > main/filter/source/config/fragments/filters/MS_Word_2007_XML.xcu > > - > main/filter/source/config/fragments/filters/calc_MS_Excel_2007_XML.xcu > > - > main/filter/source/config/fragments/filters/impress_MS_PowerPoint_2007_XML.xcu > > > This confirms that the normal OOXML filter configurations are import-only. > > But there is a subtlety worth preserving: the WriterFilter has an internal > export dispatch to DocxExport. Consequently, filter registration and actual > implementation availability must be audited separately. > > AOO's developer documentation explains the significance of the IMPORT and > EXPORT flags and the UNO filter interfaces. > Apache OpenOffice Wiki+2 > > > 4. Strict OOXML — an interesting discovery > > This is probably the most promising area for systematic improvements. > > I inspected: > > main/oox/source/token/namespaces.txt > > The runtime token namespace inventory includes the Transitional namespaces: > doc http://schemas.openxmlformats.org/wordprocessingml/2006/main > xls http://schemas.openxmlformats.org/spreadsheetml/2006/main > ppt http://schemas.openxmlformats.org/presentationml/2006/main > I also inspected: > > main/oox/source/core/filterdetect.cxx > > The root relationship detector explicitly recognizes: > http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument > The content-type detection logic recognizes the conventional Transitional > Word, Excel and PowerPoint content types. > > Furthermore, writerfilter/source/ooxml/OOXMLStreamImpl.cxx contains > hard-coded Transitional relationship types for document, styles, numbering > and font tables. > > These are significant Strict compatibility concerns. > > But there is another discovery > > The repository contains a separate Java OOXML schema-processing > implementation: > > main/ooxml/source/framework/SchemaParser/ > > Its NamespaceMap.java explicitly contains both Strict and Transitional > namespace mappings. > > For example: > maURIToPrefixMap.put( > "http://schemas.openxmlformats.org/wordprocessingml/2006/main", > "w06"); > > maURIToPrefixMap.put( > "http://purl.oclc.org/ooxml/wordprocessingml/main", > "w12"); > Equivalent mappings exist for DrawingML, SpreadsheetML, PresentationML and > relationships. > NamespaceMap.java > This is an important lead, but we must not confuse it with runtime > document-filter support. It is schema-processing infrastructure, not evidence > that the production DOCX/XLSX/PPTX filters accept Strict documents. > Strict support needs deeper investigation > My initial assessment is that Strict support is likely substantially > incomplete, especially at package detection and relationship resolution. > > I would investigate whether the namespace mapping machinery can inform a > relatively small compatibility layer in oox, rather than duplicating the > entire import implementation. > > 5. DrawingML and shared infrastructure > > The oox module has a substantial implementation. > > The actual directory structure includes: > main/oox/source/ > core/ > docprop/ > drawingml/ > chart/ > diagram/ > table/ > dump/ > export/ > helper/ > ole/ > ppt/ > shape/ > token/ > vml/ > xls/ > This is encouraging. > > AOO already has shared infrastructure for: > > - > DrawingML shapes and properties > > - > Text bodies and paragraphs > > - > Themes and colors > > - > Charts > > - > Tables > > - > Diagrams > > - > VML > > - > Relationships > > - > Package fragments > > > The export directory also contains: > > - > drawingml.cxx > > - > shapes.cxx > > - > vmlexport.cxx > > > However, these are shared graphics serialization facilities, not complete > document-family exporters. > > The distinction matters because we should avoid implementing DrawingML > functionality separately in Writer, Calc and Impress when reusable > infrastructure already exists. > > DrawingML implementation · Shared export infrastructure. > > 6. Writerfilter schema coverage > > This is one of the most valuable existing resources. > > main/writerfilter/source/ooxml/ contains: > > - > model.xml > > - > factory.xsl > > - > factoryimpl.xsl > > - > fasttokens.xsl > > - > analyzemodel.xsl > > - > analyzestage2.xsl > > - > analyzestage3.xsl > > - > efforts.sh > > - > status.sh > > - > todo.xsl > > - > README.efforts > > > The existing effort-reporting mechanism is particularly interesting. > > It associates XML schema elements and attributes from model.xml with parser > case labels and implementation-status annotations in C++ source. > > It can identify: > > - > Elements and attributes without handlers. > > - > Elements and attributes with incomplete implementation. > > - > Work planned but not completed. > > > This is exactly the kind of measurable coverage analysis we want. > > I would prioritize getting this mechanism running before manually auditing > thousands of WordprocessingML elements. > > The next question is whether oox/source/xls and oox/source/ppt have > equivalent models or whether we need to develop a generalized inventory tool. > > Complete Writerfilter OOXML infrastructure. > > 7. Packaging and relationships > > I inspected: > > - > oox/source/core/filterdetect.cxx > > - > oox/source/core/relationshandler.cxx > > - > oox/source/core/fragmenthandler.cxx > > - > oox/source/core/xmlfilterbase.cxx > > > There is an existing package architecture with: > > - > Root relationship parsing > > - > Part relationship parsing > > - > Relationship IDs and targets > > - > Internal/external relationship distinction > > - > Fragment-based XML parsing > > - > Content-type detection > > > One observation worth investigating is duplicate relationship handling. > > RelationsFragment::createFastChildContext() uses: > OSL_ENSURE( > mxRelations->count(aRelation.maId) == 0, > "RelationsFragment::createFastChildContext - relation identifier exists > already"); > It then inserts the relationship. > > This is a diagnostic assertion, not a comprehensive malformed-package > validation strategy. We need to investigate behavior in release builds and > whether duplicate IDs can lead to ambiguous resolution. > > Another area is external relationship handling. The parser records > TargetMode, but we still need to audit how consumers use external targets and > whether they can trigger unsafe resource access. > > These should become dedicated security and robustness tests. > > 8. Testing and existing coverage > > I found an additional useful test lead in the current repository: > > test/aoo-test/tests/smoke/test_convert.py > > It contains package-based OOXML test material, including a minimal DOCX > package with: > > - > [Content_Types].xml > > - > _rels/.rels > > - > word/document.xml > > > This is useful for building reproducible tests, although it does not > establish broad conformance coverage. > > AOO test infrastructure. > > The initial investigation has not yet established the completeness of DOCX, > XLSX and PPTX test coverage. That should be a separate piece of mining. > > 9. IBM Symphony comparison > > I have not yet completed the Symphony comparison. I would defer copying or > comparing individual implementations until the AOO architecture inventory is > complete. > > The most promising comparison targets are: > > | > Area > | > Reason > | > | > OOXML namespace handling > | > Potential Strict compatibility improvements > | > | > Relationship handling > | > Package robustness > | > | > DrawingML > | > Shared implementation > | > | > SpreadsheetML > | > Import coverage > | > | > PresentationML > | > Import coverage > | > | > DOCX > | > Writerfilter implementation > | > > > We should compare implementation techniques and functionality, not simply > count files or lines of code. > > 10. Initial priority assessment > > Based on the evidence gathered, I would rank the next investigations as > follows: > > P1 — Strict OOXML compatibility > HighEstablish exactly which namespace, relationship and content-type changes > prevent Strict documents from being imported. > P1 — XLSX export > High > Determine whether the existing XclExpXmlStream infrastructure is salvageable. > > P1 — DOCX export > HighAudit existing functionality and determine how to expose and complete the > exporter. > P2 — PPTX export > MediumAssess whether a reusable DrawingML export architecture can support a > proper PPTX exporter. > P2 — Schema coverage automation > MediumReuse Writerfilter's effort-reporting mechanism and investigate > generalized coverage reporting. > P2 — Package security > MediumInvestigate malformed relationships, external targets, ZIP handling and > content-type validation. > 11. Proposed next milestone > > I recommend a focused Milestone B before beginning feature remediation. > > Milestone B — OOXML conformance gap quantification > > Rather than immediately fixing Strict namespace handling, I would first > establish: > > - > Exact Strict versus Transitional differences relevant to AOO. > > - > A complete inventory of runtime namespace and relationship assumptions. > > - > Whether Strict documents can be detected and imported using controlled test > packages. > > - > DOCX export implementation coverage, including TODOs and actual filter > accessibility. > > - > XLSX export scaffolding completeness and reachability. > > - > PPTX export feasibility using existing DrawingML code. > > - > Existing regression tests for each finding. > > > The deliverable should be a machine-readable gap inventory plus a prioritized > report. > > My main conclusions > > Three findings stand out: > > - > DOCX export is not a greenfield project. A partially implemented exporter > already exists. > > - > XLSX export has interesting abandoned or unfinished infrastructure. We should > investigate its history and completeness before designing a replacement. > > - > Strict OOXML has an existing namespace-processing lead in main/ooxml, but the > production import infrastructure appears heavily oriented toward Transitional. > > > I would not start with a general OOXML rewrite. AOO already has a substantial > amount of reusable infrastructure. The opportunity is to expose what is > already implemented, identify the genuinely missing pieces, and make > standards compliance measurable. > > Investigation limitation: This was remote source mining against the Apache > repository. I have not built AOO, executed the filters, tested actual Office > documents or verified runtime behavior. Those remain explicit follow-up tasks. > > My recommendation is to make Strict/Transitional compatibility and export > feasibility the first two deep dives. They are likely to reveal the largest > architectural opportunities. > > > On Monday, November 23, 2026 at 10:50:33 AM GMT-5, Jim Jagielski > <[email protected]> wrote: > > Thanks! > PS: I don't have access to that ChatGPT session. > > > On Nov 23, 2026, at 9:17 AM, Pedro F. Giffuni via dev > <[email protected]> wrote: > From my research [1], Apache POI is not the way to go here:1) there is > already some native scaffolding for ooxml write support2) Apache POI, other > than redocing everything in a alien framewrok, only supports well Excel. > I identified some lower hanging fruit, improving > OODRAWXML:https://learn.microsoft.com/en-us/openspecs/office_standards/ms-odrawxml/ > > Complying with standards is something we already know well, and this would > help our import filters. > Pedro. > [1] https://chatgpt.com/c/6b03d688-0b2c-83e8-bb40-c3d6d8842f0a > On Monday, November 23, 2026 at 06:40:53 AM GMT-5, Jim Jagielski > <[email protected]> wrote: > > I've drafted up a quick top-level concept for using POI: > > | | > | > | Apache POI for optional OOXML support: design proposaldocs.google.com | > > | > > > > > Cheers! > -- > Jim > "There is a time to laugh and a time not to laugh, and this is not one of > them." > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- > Jim > "This is an outrage!" Tony Harrison --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
