poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54895] New: how to encoding ,using xslf2png?
Date Fri, 26 Apr 2013 09:39:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54895

            Bug ID: 54895
           Summary: how to encoding ,using xslf2png?
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: skygongle@gmail.com
    Classification: Unclassified

Dear sir!
when are using hslf ppt2png,i can do this code[see code1].how to do it by xslf
ppt2png?
Looking forward to your reply at the soonest.
my email: skygongle@gmail.com

code1:   Slide[] slide = ppt.getSlides();
            for (int i = 0; i < slide.length; i++) {
                if ((slidenum != -1) && (slidenum != i + 1))
                    continue;
                // ####支持中文####
                TextRun[] truns = slide[i].getTextRuns();
                String title = slide[i].getTitle();
                for (int k = 0; k < truns.length; k++) {
                    RichTextRun[] rtruns = truns[k].getRichTextRuns();
                    for (int l = 0; l < rtruns.length; l++) {
                        int index = rtruns[l].getFontIndex();
                        String name = rtruns[l].getFontName();
                        rtruns[l].setFontIndex(1);
                        rtruns[l].setFontName("宋体");
                        // System.out.println(rtruns[l].getText());
                    }
                }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message