Hi. I have a sample code that imports and exports a .html file:
var loadOptions = new LoadOptions
ResourceLoadingCallback = new ResourceLoadingCallback()
var document = new Document(“source.html”, loadOptions);
public sealed class ResourceLoadingCallback : IResourceLoadingCallbackEverything works fine, but if you open source and target files with a text editor, you will see that their structures are quite different. Is there a way to tell Aspose Words to preserve html structure of a source file in target file as much as possible?
public ResourceLoadingAction ResourceLoading(ResourceLoadingArgs args)
return args.ResourceType == ResourceType.Image ? ResourceLoadingAction.Skip : ResourceLoadingAction.Default;
P.S. I’m using Aspose Words for .NET 184.108.40.206