Free Support Forum - aspose.com

Slide to SVG: Text out of edge of the slide (C# .NET)

Hi

I am using Aspose Slides 17.8 to convert PowrtPoint files into svg format.
This issue occurs in Linux environment.

Here is my code for converting test:

String filePath = "custom/input/DevEvaEva.pptx";
String passeord = "";

Presentation pre;

if (StringUtils.isEmpty(password)) {
	pre = new Presentation(filePath);
} else {
	LoadOptions loadOps = new LoadOptions();
	loadOps.setPassword(password);
	pre = new Presentation(filePath, loadOps);
}

String dirName = UUID.randomUUID().toString();
File file = new File("" + dirName);
file.mkdirs();

for (int i = 0; i < pre.getSlides().size(); i++) {
	ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
	ISlide slide = pre.getSlides().get_Item(i);
	slide.writeAsSvg(outputStream);
	IOUtils.write(outputStream.toByteArray(), new FileOutputStream("" + dirName + "/" + (i + 1) + ".svg"));
}

In the result, some part of texts are placed outside the edge of the slide.
I have uploaded this PowerPoint file, and the result.
Please check the attachment and this issue, thank you~
DevEvaEva.pptx.zip (195.4 KB)
result.zip (57.0 KB)
comparison.JPG (155.2 KB)

P.S. I have installed the fonts used in this PowerPoint file.

Craig

@craig.w.su,

I have worked with source code and presentation file shared by you using Aspose.Slides for Java 17.8 and have been able to observe the issue. A ticket with ID SLIDESJAVA-36593 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.

We are sorry for your inconvenience,

@craig.w.su,

Can you please share information requested below for further investigation to help you out.

  • Linux version
  • JDK version
  • List of installed fonts (fc-list command)
  • List of used fonts

Hi
@Adnan.Ahmad

1.Linux version
CentOS Linux release 7.2.1511 (Core)

2.JDK version
java version “1.8.0_111”

3.List of installed fonts
/usr/share/fonts/forread/TW-Sung-98_1.ttf: TW-Sung,全字庫正宋體:style=Regular
/usr/share/fonts/forread/TW-Kai-Ext-B-98_1.ttf: TW-Kai-Ext-B,全字庫正楷體 Ext-B:style=Regular
/usr/share/fonts/forread/TimesBold.ttf: Times:style=Bold,粗體,Fed,Fett,Puolilihava,Gras,Grassetto,ボールド,볼드체,Vet,Fet,Negrito,Жирный,粗体,Negrita
/usr/share/fonts/forread/MSJHBD.TTC: Microsoft JhengHei,微軟正黑體:style=Negreta,Bold,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,Lodia
/usr/share/fonts/forread/cambriab.ttf: Cambria:style=Bold
/usr/share/fonts/forread/wt011.ttf: HanWangHeiLight,王漢宗細黑體繁:style=Regular
/usr/share/fonts/forread/Times New Roman Bold.ttf: Times New Roman:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiona,Negrito,Полужирный,Fet,Kalın,Krepko,đậm,Lodia
/usr/share/fonts/forread/TimesRoman.ttf: Times:style=Regular,標準體,Ordinær,Normal,Normaali,Regolare,レギュラー,일반체,Regulier,Обычный,常规体
/usr/share/fonts/forread/cambria.ttc: Cambria:style=Regular
/usr/share/X11/fonts/Type1/c0611bt_.pfb: Courier 10 Pitch:style=Bold Italic
/usr/share/X11/fonts/Type1/UTBI____.pfa: Utopia:style=Bold Italic
/usr/share/fonts/forread/msgothic.ttc: MS Gothic,MS ゴシック:style=Regular,標準
/usr/share/fonts/forread/Times New Roman.ttf: Times New Roman:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta
/usr/share/fonts/forread/SIMSUN.TTC: SimSun,宋体:style=Regular,常规
/usr/share/fonts/forread/msgothic.ttc: MS UI Gothic:style=Regular,標準
/usr/share/fonts/forread/timesbi.ttf: Times New Roman:style=Bold Italic,Negreta cursiva,tučné kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,Полужирный Курсив,Tučná kurzíva,Fet Kursiv,Kalın İtalik,Krepko poševno,nghiêng đậm,Lodi etzana
/usr/share/fonts/forread/cwTeXQMing-Medium.ttf: cwTeX Q Ming:style=Medium
/usr/share/fonts/forread/cwTeXQKai-Medium.ttf: cwTeX Q Kai:style=Medium
/usr/share/X11/fonts/Type1/c0419bt_.pfb: Courier 10 Pitch:style=Regular
/usr/share/fonts/forread/MSJHBD.TTC: Microsoft JhengHei UI:style=Negreta,Bold,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,Lodia
/usr/share/fonts/forread/WINGDING.TTF: Wingdings:style=Regular,normal,Standard,Normaali,Normale,Standaard,Normálne,Navadno
/usr/share/fonts/forread/Times New Roman Italic.ttf: Times New Roman:style=Italic,cursiva,kurzíva,kursiv,Πλάγια,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,kursywa,Itálico,Курсив,İtalik,Poševno,nghiêng,Etzana
/usr/share/fonts/forread/ARIALNBI.TTF: Arial,Arial Narrow:style=Narrow,Negreta cursiva,tučné kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,Bold Italic,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,Полужирный Курсив,Tučná kurzíva,Fet Kursiv,Kalın İtalik,Krepko poševno,Lodi etzana
/usr/share/fonts/forread/MSJH.TTC: Microsoft JhengHei UI:style=Normal,Regular,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/forread/cambriai.ttf: Cambria:style=Italic
/usr/share/fonts/forread/SIMSUN.TTC: NSimSun,新宋体:style=Regular,常规
/usr/share/fonts/forread/arialbi.ttf: Arial:style=Bold Italic,Negreta cursiva,tučné kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,Полужирный Курсив,Tučná kurzíva,Fet Kursiv,Kalın İtalik,Krepko poševno,nghiêng đậm,Lodi etzana
/usr/share/fonts/forread/arialbd.ttf: Arial:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,đậm,Lodia
/usr/share/fonts/forread/Times New Roman Bold Italic.ttf: Times New Roman:style=Bold Italic,Negreta cursiva,tučné kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,Полужирный Курсив,Tučná kurzíva,Fet Kursiv,Kalın İtalik,Krepko poševno,nghiêng đậm,Lodi etzana
/usr/share/fonts/forread/mingliub.ttc: PMingLiU-ExtB,新細明體-ExtB:style=Regular
/usr/share/X11/fonts/Type1/c0648bt_.pfb: Bitstream Charter:style=Regular
/usr/share/fonts/forread/wt001.ttf: HanWangMingLight,王漢宗細明體繁:style=Regular
/usr/share/fonts/forread/WEBDINGS.TTF: Webdings:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/forread/lucon.ttf: Lucida Console:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Navadno,Arrunta
/usr/share/fonts/forread/ARIALNB.TTF: Arial,Arial Narrow:style=Narrow,Negreta,tučné,fed,Fett,Έντονα,Bold,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,Lodia
/usr/share/fonts/forread/MSJH.TTC: Microsoft JhengHei,微軟正黑體:style=Normal,Regular,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/forread/times.ttf: Times New Roman:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta
/usr/share/fonts/forread/PMingLiU.ttf: PMingLiU,新細明體:style=Regular
/usr/share/fonts/forread/MSJHL.TTC: Microsoft JhengHei UI,Microsoft JhengHei UI Light:style=Light,Regular
/usr/share/fonts/forread/TimesItalic.ttf: Times:style=Italic,斜體,Kursiv,Kursiivi,Italique,Corsivo,イタリック,이탤릭체,Cursief,Itálico,Курсивный,斜体,Cursiva
/usr/share/fonts/forread/WINGDNG3.TTF: Wingdings 3:style=Regular,normal,Standard,Normaali,Normale,Standaard
/usr/share/fonts/forread/NotoSansCJKtc-Regular.otf: Noto Sans CJK TC,Noto Sans CJK TC Regular:style=Regular
/usr/share/fonts/forread/cambriaz.ttf: Cambria:style=Bold Italic
/usr/share/fonts/opensymbol/opens___.ttf: OpenSymbol:style=Regular
/usr/share/fonts/forread/MSJHL.TTC: Microsoft JhengHei,微軟正黑體,微軟正黑體 Light,Microsoft JhengHei Light:style=Light,Regular
/usr/share/fonts/forread/timesbd.ttf: Times New Roman:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiona,Negrito,Полужирный,Fet,Kalın,Krepko,đậm,Lodia
/usr/share/fonts/forread/mingliub.ttc: MingLiU_HKSCS-ExtB,細明體_HKSCS-ExtB:style=Regular
/usr/share/X11/fonts/Type1/cursor.pfa: Cursor:style=Regular
/usr/share/X11/fonts/Type1/UTB_____.pfa: Utopia:style=Bold
/usr/share/X11/fonts/Type1/c0583bt_.pfb: Courier 10 Pitch:style=Bold
/usr/share/fonts/forread/arial.ttf: Arial:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta
/usr/share/fonts/forread/timesi.ttf: Times New Roman:style=Italic,cursiva,kurzíva,kursiv,Πλάγια,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,kursywa,Itálico,Курсив,İtalik,Poševno,nghiêng,Etzana
/usr/share/fonts/forread/TimesBoldItalic.ttf: Times:style=Bold Italic,粗斜體,Fed kursiv,Fett, Kursiv,Puolilihava kursiivi,Gras italique,Grassetto corsivo,ボールド・イタリック,볼드 이탤릭체,Vet Cursief,Fet kursiv,Negrito Itálico,Жирный курсивный,粗斜体,Negrita cursiva
/usr/share/fonts/forread/ARIALNI.TTF: Arial,Arial Narrow:style=Narrow,Cursiva,kurzíva,kursiv,Πλάγια,Italic,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,Kursywa,Itálico,Курсив,İtalik,Poševno,Etzana
/usr/share/X11/fonts/Type1/UTI_____.pfa: Utopia:style=Italic
/usr/share/fonts/forread/mingliub.ttc: MingLiU-ExtB,細明體-ExtB:style=Regular
/usr/share/fonts/forread/ariblk.ttf: Arial,Arial Black:style=Black,Normal,obyčejné,Standard,Κανονικά,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/forread/calibrib.ttf: Calibri:style=Bold
/usr/share/fonts/forread/ariali.ttf: Arial:style=Italic,Cursiva,kurzíva,kursiv,Πλάγια,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,Kursywa,Itálico,Курсив,İtalik,Poševno,nghiêng,Etzana
/usr/share/fonts/forread/calibril.ttf: Calibri,Calibri Light:style=Light,Regular
/usr/share/fonts/forread/cambria.ttc: Cambria Math:style=Regular
/usr/share/X11/fonts/Type1/c0582bt_.pfb: Courier 10 Pitch:style=Italic
/usr/share/fonts/forread/msgothic.ttc: MS PGothic,MS Pゴシック:style=Regular,標準
/usr/share/fonts/forread/TW-Kai-Plus-98_1.ttf: TW-Kai-Plus,全字庫正楷體 Plus:style=Regular
/usr/share/fonts/forread/wt006.ttf: HanWangYenLight,王漢宗細圓體繁:style=Regular
/usr/share/fonts/forread/TW-Kai-98_1.ttf: TW-Kai,全字庫正楷體:style=Regular
/usr/share/X11/fonts/Type1/c0633bt_.pfb: Bitstream Charter:style=Bold Italic
/usr/share/fonts/forread/ARIALN.TTF: Arial,Arial Narrow:style=Narrow,Normal,obyčejné,Standard,Κανονικά,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/X11/fonts/Type1/c0649bt_.pfb: Bitstream Charter:style=Italic
/usr/share/X11/fonts/Type1/c0632bt_.pfb: Bitstream Charter:style=Bold
/usr/share/X11/fonts/Type1/UTRG____.pfa: Utopia:style=Regular

4.List of used fonts (Get it by IFontsManager.getFonts())
Arial
Calibri
MS Pゴシック

@craig.w.su,

Thank you for sharing the information with us. I have added the information in our issue tracking system and will share the feedback with you as soon as it will be shared by our product team.

The issues you have found earlier (filed as SLIDESJAVA-36593) have been fixed in this update.