GroupDocs.Assembly API allows you to use a string as input and output template, instead of document. This feature improves programmability while working with strings instead of documents, the resultant output string can be used as per the application needs. Follow these steps to using a string as input and output template:
Initialize DocumentAssembler
Define sourceString “«[yourValue]»”
Convert sourceString to sourceBytes using ByteArrayInputStream(sourceBytes)
Get targetBytes using DocumentAssembler.assembleDocument()
Get** targetString **using new String(targetBytes, StandardCharsets.UTF_8)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.