help finding AltChunkProperties
Posted: Thu Sep 29, 2011 8:10 am
Just getting started with docx4j and finding it very useful. I've run into a hitch with HTML altChunks, though: I'd like the styling of the main document to flow through instead of using the style of the HTML (which is defaulting to Times New Roman etc.).
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:
(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!
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!