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

Free Support Forum - aspose.com


Hi, I have an inquiry about metacharacters. If you look at the attached file, in first shape there is a simple text. If I execute following code:
Shapes shapes = slide.getShapes();

Shape shape = shapes.get(0);

TextFrame textFrame = shape.getTextFrame();

MetaCharacters metaCharacters = textFrame.getMetaCharacters();

Paragraph paragraph = textFrame.getParagraphs().get(0);

I see that there is metacharacters but I am confused how to handle them. I basicly want to do following:
I want to read whole text (without metacharacters but I want to know where they are).
When text is changed I want to write it back on the same place and with metacharacter.

I hope that you understand me, if no please tell me.

Thanks, Ivica.

Dear Ivica,

You can iterate all the portions inside the paragraphs and change the text, if it is not equal to *



Ok, but is there any way to remember metacharacters and their positions? For example I want to write whole paragraph to xml, and metacharacter would be some kind of placeable element (with information of type and position in a paragraph).
And then when I have to write changed text back to paragraph I want do remove all portions from that paragraph and write new ones. And for that I need to know where metachararactes were.

Thanks, Ivica.