I have attached a presentation “color_src.pptx” having one shape in the first slide. (NOTE: When I open this presentation in microsoft powerpoint and try to select the shape in first slide, it somehow appears to be locked. can you please tell why ?)
Additionally, when I read this file using aspose and try to find the color of this shape using code below:
presentation.slides[0].shapes[0].fill_format.get_effective().solid_fill_color.name
It returns me the value “ff0077b6”, which appears to be a blue color. However, the shape color is actually white when seen from powerpoint.
can you please tell why ?
color_src.pptx.zip (30.9 KB)
@Prezent_Inc
It seems that you are encountering two issues with the shape in your PowerPoint presentation.
-
Shape Locking: The shape appearing to be locked in Microsoft PowerPoint could be due to several reasons. It might be part of a group, or it could have been set to be non-editable by the creator of the presentation. Sometimes, shapes are locked to prevent accidental modifications, especially in templates or presentations designed for specific purposes.
-
Color Discrepancy: Regarding the color value you are retrieving using Aspose, the value “ff0077b6” corresponds to a blue color in hexadecimal format. However, if the shape appears white in PowerPoint, it could be due to several factors:
- The shape might have a different fill style applied in PowerPoint that is not being reflected in the Aspose API. For example, it could be using a gradient fill or an image fill that is not captured by the
solid_fill_color
property.
- There might be an issue with how the color is being interpreted or rendered by Aspose compared to PowerPoint.
To troubleshoot this, you can check the fill format of the shape in PowerPoint to see if it is indeed set to a solid fill or if there are any additional effects applied. You can also try to access other properties of the shape’s fill format using Aspose to get more insights into how the fill is defined.
If you need further assistance, please provide more details about the shape’s properties or any specific code snippets you are using to access the shape’s attributes.
Sources:
[1]: Change the fill color of a shape in a presentation - Aspose Documentation
@Prezent_Inc,
I need some time to check the issue. I will get back to you as soon as possible.
@Prezent_Inc,
Thank you for your patience. I’ve reproduced the issues with shape selection and shape color.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESPYNET-265
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.