nissl-lab / npoi

a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.
Apache License 2.0
5.73k stars 1.43k forks source link

POI Bug 52649: adobe:ns:meta namespace in WordToFoConverter can be wrong #1227

Closed tohidemyname closed 10 months ago

tohidemyname commented 11 months ago

NPOI Version

master

The code is as follows:

protected XmlElement GetOrCreatePropertiesRoot()

{ ... XmlElement xmpmeta = document.CreateElement("adobe:ns:meta", "x:xmpmeta", NS_XSLFO); ... }

I notice that POI fixed a bug: https://github.com/apache/poi/commit/78be7da87d0a504ec1f2595495fed41b45c7b933

The buggy code of POI is as follows:

protected Element getOrCreatePropertiesRoot(){ ... Element xmpmeta = document.createElementNS( "adobe:ns:meta", "x:xmpmeta" );

The fixed code is as follows: protected Element getOrCreatePropertiesRoot(){ ... Element xmpmeta = document.createElementNS( "adobe:ns:meta/", "x:xmpmeta" );

tonyqus commented 10 months ago

HWPF is not implemented in NPOI