I'm converting html to doc
I have to resolve path to external css files in my html file.
I use XHTMLImporter.convert(reportHtml, null) );
By default paths are not resolved corretcly.
Can override somehow Docx4jUserAgent to implement my custom resolving algoritm?
Or maybe some anoter solution for this problem?
For example for FlyIngSaucer I can specyfy custom UserAgent
ITextRenderer renderer = new ITextRenderer();
CustomUserAgent customUserAgent = new CustomUserAgent(renderer.getOutputDevice(), uriString);
customUserAgent.setSharedContext(renderer.getSharedContext());
renderer.getSharedContext().setUserAgentCallback(customUserAgent);
Thanks, Eugene