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: [email protected]
Reporter: [email protected]
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: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]