Free Support Forum - aspose.com

Adding Custom Properties (Java)

Hi,

I have the following java code:

Document doc = doc = new Document(path);

CustomDocumentProperties cprp = doc.getCustomDocumentProperties();

cprp.add(“Test1”, “YEP1”);
cprp.add(“Test2”, “YEP2”);
cprp.add(“Test3”, “YEP3”);
cprp.add(“Test4”, “YEP4”);

doc.save(“xpto.doc”);

These properties do not appear in the generated xpto.doc file and the custom properties from the original file are not there either.

Any ideas?

Thanks in advance.
TL

Hi,

Thank you for your request. Please attach the source document to reproduce.

Here it goes.

There is only one custom property: ‘Classe Documental’.

When executing the given code a document without any custom property is generated.

By the way, i’m using version 2.1.

Thanks in advance.
TL

Hi

Thanks for your remark. I have reproduced this problem. And I have logged this problem to our defect base as issue # 3393. We will try to fix it in our next release, which will be published in a couple of weeks. A notification will be posted here in this thread as soon as it will be done.

Additionally I can tell, that the custom properties you add programmatically are added to the target document, but you can see it only in file\right click menu\properties\custom.

Best regards.

Hi

This fix is released only for .NET version. Java version with the fix will be released soon .



Best regards



what version of Aspose.Slide for Java is this fixed?

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. The issue was discussed in this thread is related to Aspose.Words. If you have any problems with Aspose.Slides please post your request in the corresponding forum.

http://www.aspose.com/community/forums/aspose.slides-for-.net-java-and-reporting-services/109/showforum.aspx

Best regards.