I've found a post describing an AltChunkProperties found within the Open XML SDK that can be configured to make the altChunk import match the document style:
- Code: Select all
altChunk = new AltChunk();
AltChunkProperties altChunkProperties = new AltChunkProperties();
altChunkProperties.MatchSource = new MatchSource() { Val = new OnOffValue(false)};
altChunk.AppendChild<AltChunkProperties>(altChunkProperties);
(from http://social.msdn.microsoft.com/Forums ... f5f94ca3fa)
I've looked for a corresponding class in the docx4j API, but haven't found it yet. I'd be grateful if someone could point me in the right direction.
Thanks!