为有中文需求的客户提供多渠道中文技术支持.

Thu Oct 27, 2022 11:03 am

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="main24" width="960" height="540">
    <defs>
    <linearGradient transform="matrix(1 0 0 1 0 0)"  id="1" x1="129.0335" y1="369.4716" x2="129.0335369.4716" y2="129.0335323.0472">
        <stop stop-color="#7e92a2" offset="0%"/>
        <stop stop-color="#ffffff" offset="100%"/>
    </linearGradient>
    </defs>
   <g transform="matrix(1.333333 0 0 1.333333 0 0)">
        <path stroke="none" fill="#e5f3fe" fill-rule="evenodd" d="M0 0L720 0L720 405L0 405z" transform="matrix(1 0 0 1 0 0)"  />
        <path stroke="url(#1)" fill="none" d="M129.0335 207.948C 129.0335 118.741 201.3501 46.42441 290.5571 46.42441C 379.7641 46.42441 452.0807 118.741 452.0807 207.948C 452.0807 297.155 379.7641 369.4716 290.5571 369.4716C 201.3501 369.4716 129.0335 297.155 129.0335 207.948z" transform="matrix(0.8746197 -0.4848096 0.4848096 0.8746197 -64.38507 166.9374)"  />
   </g>
</svg>


注意到第五行中的x2,y2值有两个小数点
我认为应该是把字符串之间拼接在了x1,y1后面,也许是在进行加法计算时,错误的使用了字符串类型,这导致我不得不使用很长的一段代码来使得数据不出错

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

Fri Oct 28, 2022 9:01 am

您好,

感谢您的留言。
经过测试,我复现了“x2”和“y2”中多出小数点的问题,我已将此问题记录到我们的问题跟踪系统,问题编号是SPIREPPT-2099。一旦问题解决了,我将会第一时间通知您。

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Wed Jan 18, 2023 3:17 am

您好,

感谢您的耐心等待。
很高兴通知您我们发布的Spire.Presentation 7.12.4,解决了您编号为SPIREPPT-2099的问题。欢迎下载测试。
网站下载链接: https://www.e-iceblue.cn/Downloads/Spir ... -JAVA.html

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Wed Jan 18, 2023 3:40 am

Abel.He wrote:您好,

感谢您的耐心等待。
很高兴通知您我们发布的Spire.Presentation 7.12.4,解决了您编号为SPIREPPT-2099的问题。欢迎下载测试。
网站下载链接: https://www.e-iceblue.cn/Downloads/Spir ... -JAVA.html

Sincerely
Abel
E-iceblue support team



7.12.4版本发布已经有一段时间了,修复了另一个我所遇到的bug。所以我已经切换项目到7.12.4版本。所以我并不需要其他更多的操作么?

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

Wed Jan 18, 2023 5:55 am

您好,

感谢您的反馈。
是的,我使用下面的代码测试您提供的文档(svg双小数点.pptx),转为svg后的结果文档页面内容是和ppt源文件是一样。
Code: Select all
 String inputFile ="data/svg双小数点.pptx";
        String outputFile="output/";
        Presentation ppt = new Presentation();
        ppt.loadFromFile(inputFile);
        ArrayList<byte[]> svgBytes =(ArrayList<byte[]>) ppt.saveToSVG();

        int len = svgBytes.size();
        for (int i = 0; i < len; i++)
        {
            byte[] bytes = svgBytes.get(i);
            FileOutputStream stream = new FileOutputStream(String.format(outputFile + "ToSVG-%d.svg", i));
            stream.write(bytes);
        }
        ppt.dispose();


Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Return to 中文技术支持

cron