Skip to content
Advertisement

How to replace date field with some text in the ViewMaster (Vertical) for word/pdf using Aspose?

Aspose code is inserting Viewmaster(vertical) with default date to select as a text inside. I want to replace with some text as shown in the image.

Followed the code mentioned in ViewMaster(vertical) using Aspose to generate the ViewMaster(Vertical) in the word/pdf. can someone help in getting the right code to replace the date with text

enter image description here

Advertisement

Answer

Date is set in structured document tag. You can use code like this to get and modify value of this SDT:

JavaScript

If you do not need date, but need to insert some custom text, you can remove the tag and insert a simple paragraph with text instead. For example:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement