Free Support Forum - aspose.com

Can't read tags back in Aspose.slides for Java

Here is the code (in jython shell)

>>> from com.aspose.slides import Presentation
>>> pres = Presentation()
>>> slide = pres.getSlides().get(0)
>>> print slide.tags
com.aspose.slides.Tags@151574b
>>> print slide.tags.size()
0
>>> slide.tags.put(“test-key”, “test-value”)
>>> slide.tags.size()
1
>>> print slide.tags.get(“test-key”)
None
>>> print slide.tags.get(“test-value”)
None
>>> print slide.tags.getTagName(0)
test-value

Note: if you open the created ppt with powerpoint, you can actually see the tag.
So it seems that only the tags get/getTagName are broken.

–Wolfgang

Hello Wolfgang,

MS PowerPoint store all tag names in upper case and Aspose.Slides follow this rule too.
So if you try ‘slide.tags.get(“TEST-KEY”)’ it will return “test-value”.
Although I think we should add automatic conversion to the “get” function.