We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting the DocumentBuilder from Document

Hi there,
was wondering how to get the DocumentBuilder from the Document which I created in another class.

Example:
Class1.java

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

In the second class I can obtain the Document Object but not the DocumentBuilder Object due to a parent abstract class that filters what Class2.java can use. Modifying the abstract class is not an option.

Class2.java (need something like this)

DocumentBuilder builder = doc.getDocumentBuilder();

Greetings and thanks,
Lucian.

Hi Lucian,


Thanks
for your inquiry. Aspose.Words does not provide the requested feature. However, I have logged this feature request as WORDSNET-11102 in our issue tracking system. Our development team will look into the
possibility of implementation of this requested feature. Once we have
any information about this feature, we will update you via this thread.

Please let us know if you have any more queries.

Hi Lucian,


Thanks
for your patience. Could you please share some detail about your requirements/scenario along with some potential use cases for this feature? We can not fully justify the need for such a method/property on a Document class.