Free Support Forum - aspose.com

Save Each EditableRange as separate document


#1

Hi there,

I’m evaluating the aspose.words java component for our applications use. Here’s the brief notes about the req’mt.

  1. A template document with boiler-plate paragraphs and mail-merge field place holders
  2. Using Aspose.words java API, i’m able to replace the mail-merge fields with some text.
  3. The whole document is made read-only and some of the paragraphs were made editable.
  4. The document sent to multiple users, they are able to use the editable section without any restrictions.
  5. The final document received and all edtiable area should be extracted and saved as standalone document. Each editable section saved as one new document.

I have attached a sample document. It has 4 editable sections, and I would like to save them into 4 separate document file.

Could you please help to understand how to extract each editable range and save them as separate document. Any sample code would be helpful to move forward. Thank you for your time.
Aspose_java_Sample_doc.zip (26.5 KB)


#2

I posted the above question too early before going through the other examples. Made use of an existing example that extracts content b/w other nodes in the following example.

https://docs.aspose.com/display/wordsnet/How+to+Extract+Selected+Content+Between+Nodes+in+a+Document#HowtoExtractSelectedContentBetweenNodesinaDocument-ExtractContentOverviewandCode

I got my code working! its very cool when you see your code working on the first run. Happy Coding!!!


#3

@arnisen

Thanks for your inquiry. It is nice to hear from you that you have solved your issue. Please let us know if you face any issue while using Aspose.Words.