Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Mon Aug 29, 2022 10:18 am

I can't get the color of the shape in that pptx file about opacity by presentation.getSlides().get(0).SaveToSVG()

it shows that :
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="main25" width="1280" height="720">
    <defs>
    <linearGradient transform="matrix(1 0 0 1 0 0)"  id="2571" x1="6.12323399573677E-17" y1="1" x2="0" y2="0">
        <stop stop-color="#da1c09" offset="0"/>
        <stop stop-color="#d90902" offset="0.99"/>
        <stop stop-color="#d90902" offset="1"/>
    </linearGradient>
    </defs>
   <g transform="matrix(1.333333 0 0 1.333333 0 0)">
        <path stroke="none" fill="#ffffff" fill-rule="evenodd" d="M0 0L960 0L960 540L0 540z" transform="matrix(1 0 0 1 0 0)"  />
        <path stroke="none" fill="url(#2571)" d="M178.8751 198C 178.8751 97.96747 259.9675 16.87505 360.0001 16.87505C 460.0326 16.87505 541.1251 97.96747 541.1251 198C 541.1251 298.0326 460.0326 379.1251 360.0001 379.1251C 259.9675 379.1251 178.8751 298.0326 178.8751 198.0001z" transform="matrix(1 0 0 1 0 0)"  />
   </g>
</svg>


but i need information as
Code: Select all
<stop offset="1" stop-color="black" stop-opacity="0.5" />
so I can draw the same pic in my website

DemosHume
 
Posts: 35
Joined: Mon Jan 17, 2022 10:22 am

Mon Aug 29, 2022 10:22 am

Or I can also accept that if it can give me the color mixed with the white background just as it shows in the powerpoint

DemosHume
 
Posts: 35
Joined: Mon Jan 17, 2022 10:22 am

Tue Aug 30, 2022 3:44 am

Hi,

Thank you for your inquiry.
I reproduced your problem and logged it into our bug tracking system with ticket SPIREPPT-2053. Our dev team will investigate this issue, once there is any good news, I will inform you. Apologize for the inconvenience.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Fri Sep 23, 2022 9:38 am

Hi,

Glad to inform you that the reported issue SPIREPPT-2053 has been resolved. Please download the new version from the following link.
Download from Website: https://www.e-iceblue.com/Download/presentation-for-java.html
If you downloaded from the Maven repository, please change the pom setting to:
<repositories>
<repository>
<id>com.e-iceblue</id>
<url>https://repo.e-iceblue.com/repository/maven-public/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId> e-iceblue </groupId>
<artifactId>spire.presentation</artifactId>
<version>7.9.1</version>
</dependency>
</dependencies>

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Return to Spire.Presentation