We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Embedded visio text display error when stored in SVG format

Hi Aspose team,

I am using Aspose Slide 17.1.0 to convert a PowerPoint file to a SVG file.
As a result, there are some text in the presentation embedded visio showed an error.

Here is the code I'm using:

public void svg() throws Exception {

createPPTLicense("src/test/config/etc/aspose.lic");

Presentation presentation = new Presentation(
"custom/input/pptx/test.pptx");
ISlideCollection slides = presentation.getSlides();

for (int p = 0; p < slides.size(); p++) {
ISlide slide = presentation.getSlides().get_Item(p);
OutputStream out = new FileOutputStream(new File(
"custom/output/pptx/aspose/test_p" + (p + 1) + ".svg"));

slide.writeAsSvg(out);
}
}

And I also uploaded the origin file and the result.
Please help me figure it out what happend, thanks.

Hi Lai,

I have worked with presentation file shared by you using Aspose.Slides for JAVA 17.1.0 and able to observed the issue. A ticket with ID SLIDESJAVA-35977 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,

Hi Lai,


Our product team investigated issue. It seems that you are converting this presentation on Linux without required font.
But for 100% sure, can you please share your environment details (OS, jdk, installed fonts and etc.).

Best Regards,
Hi Adnan.Ahmad,

uname -a
Linux d1ars03.novalocal 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (rhel-2.6.6.1.el7_2-x86_64 u101-b00)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

fc-list
/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/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/wt011.ttf: HanWangHeiLight,王漢宗細黑體繁: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/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/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/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/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/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/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/MSJHL.TTC: Microsoft JhengHei UI,Microsoft JhengHei UI Light:style=Light,Regular
/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/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/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/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/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/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


In addition, I found that when I installed the following fonts, the transfer results will cause the Chinese characters disappear.
/usr/share/fonts/forread/mingliu.ttc: MingLiU,細明體:style=Regular
/usr/share/fonts/forread/mingliu.ttc: PMingLiU,新細明體:style=Regular
/usr/share/fonts/forread/mingliu.ttc: MingLiU_HKSCS,細明體_HKSCS:style=Regular

And I also uploaded the wrong result tag.
Please help me figure it out what happend, thanks.

Hi lai,


Thanks for sharing information with us. We will get back to you with feedback soon.

We are sorry for your inconvenience,
Hi Aspose team,
I try to use the Slide 17.3 to convert, but still have these problems happen.
One is the result (install mingliu.svg) of installing the following fonts, and the other (not install.svg) is not installed.

/usr/share/fonts/forread/mingliu.ttc: MingLiU,細明體:style=Regular
/usr/share/fonts/forread/mingliu.ttc: PMingLiU,新細明體:style=Regular
/usr/share/fonts/forread/mingliu.ttc: MingLiU_HKSCS,細明體_HKSCS:style=Regular

Please check the attachment, and help me solve this issue, thanks!
Hi Lai,

I have observed your comments and discussed this with our product team. I like to inform that problem with fonts occurs because you are using OpenJdk. Please look at our result with OpenJdk with file name OpenJdk in attachment and also please look at our result with OracleJdk with file name test17.3. You can use fonts for SVG which I have shared with you, Unfortunately you must install these fonts in os. However, using fontsloader does not have effect on this Visio object.

Best Regards,

Hi Adnan.Ahmad,


I have tried to install these fonts in os. But the result font still can not be displayed.
Is there any solution if I want to use OpenJdk?

I uploaded the wrong result with file name test.svg in attachment. Please check it.

Hi Lai,


I like to inform that your feedback has been shared with our product team. We will share good news with you soon.

Best Regards,

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan