Working with String Template

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 Encoding.UTF8.GetBytes(sourceString)
  • GettargetBytes using DocumentAssembler.AssembleDocument()
  • Get targetString using Encoding.UTF8.GetString(targetBytes)

© Aspose Pty Ltd 2001-2022. All Rights Reserved.