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

Free Support Forum - aspose.com

PPTX convert to pdf

Your product is so good. and We will buy it soon.
I downloaded aspose-total-java.zip file yesterday.
Simple ppt or pptx are ok to convert to pdf.
but when I use company quarter report, I got this error message:

Exception in thread “main” sun.misc.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: Provider com.aspose.ms.java.utf7charset.provider.CharsetProvider not found
at sun.misc.Service.fail(Unknown Source)
at sun.misc.Service.access$000(Unknown Source)
at sun.misc.Service$LazyIterator.next(Unknown Source)
at java.nio.charset.Charset$1.getNext(Unknown Source)
at java.nio.charset.Charset$1.hasNext(Unknown Source)
at java.nio.charset.Charset$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.charset.Charset.availableCharsets(Unknown Source)
at com.aspose.slides.b.co.do(Unknown Source)
at com.aspose.slides.b.co.do(Unknown Source)
at com.aspose.slides.b.co.(Unknown Source)
at com.aspose.slides.b.at.(Unknown Source)
at com.aspose.slides.b.as.do(Unknown Source)
at com.aspose.slides.b.as.do(Unknown Source)
at com.aspose.slides.b.cn.do(Unknown Source)
at com.aspose.slides.b.cn.createScaledRendering(Unknown Source)
at com.aspose.slides.rw.do(Unknown Source)
at com.aspose.slides.rr.int(Unknown Source)
at com.aspose.slides.rr.try(Unknown Source)
at com.aspose.slides.PictureEx.do(Unknown Source)
at com.aspose.slides.mJ.do(Unknown Source)
at com.aspose.slides.mJ.if(Unknown Source)
at com.aspose.slides.mJ.(Unknown Source)
at com.aspose.slides.GeometryShapeEx.do(Unknown Source)
at com.aspose.slides.GeometryShapeEx.for(Unknown Source)
at com.aspose.slides.PictureFrameEx.do(Unknown Source)
at com.aspose.slides.GroupShapeEx.do(Unknown Source)
at com.aspose.slides.SlideEx.do(Unknown Source)
at com.aspose.slides.SlideEx.do(Unknown Source)
at com.aspose.slides.AS.if(Unknown Source)
at com.aspose.slides.PresentationEx.do(Unknown Source)
at com.aspose.slides.PresentationEx.save(Unknown Source)

Hi Ching,


Thanks for your growing interest in Aspose.Slides.

I have observed the stack trace shared by you. However, in order to further investigate the issue on my end, I request you to please share the source presentation causing the issue. I will investigate that further on my end to help you out.

Many Thanks,

After I plugged in your java jar files into my web application.
My log4j never work.
Your library set log4j to console.
How do I fix that?
It is really serious.

Thanks,
Chang Shin

Hi Chang Shin,


I like too share that Aspose.Slides for Java has no dependency over log4j. We have not found any debug output. Can you please share the sample code and also provide us an example of debug output in your console console? We will investigate the issue further on our end to help you out. I am also assuming that you are using Aspose.Slides for Java 7.1.1 on your end. Please also share the environment details with us.

Many Thanks,

It was ok the log4j function until I added your java libraries.
If I removed your libraries, It is ok.

I am using these items for developing:
Window 7, java SE 1.6.0._35, Tomcat 7.0.35, Spring mvc, and jsp, mysql, and eclipse

It is your java Libraries I added:

aspose-barcode-5.3.0-jdk15.jar
aspose-cells-7.4.1.jar
aspose-email-2.7.0.0-jdk16.jar
aspose-imaging-1.7.0-jdk15.jar
aspose-pdf-kit-4.5.0.jar
aspose.metafiles-1.8.0.jar
aspose.pdf-3.3.jdk16.jar
aspose.slides-7.1.1.jar
Aspose.Words.jdk16.jar
bcprov-jdk16-146.jar
dom4j-1.6.1.jar
stax2-api-3.0.2.jar
woodstox-core-asl-4.1.1.jar

Also,
When pptx is converted to pdf, it is ok on window.
but I got this error on Mac Pro, unix system.

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“맑은 고딕”;mso-fareast-theme-font:minor-fareast;
mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA”>java.lang.IllegalStateException:
Cannot find resource ‘/Aspose/Resources/GenBasR.ttf’. at
com.aspose.slides.a.B.if(Unknown Source) at com.aspose.slides.a.h.t.do(Unknown
Source) at com.aspose.slides.a.l.h.char(Unknown Source) at
com.aspose.slides.a.l.h.byte(Unknown Source) at
com.aspose.slides.a.l.h.do(Unknown Source) at
com.aspose.slides.a.l.j.do(Unknown Source) at
com.aspose.slides.a.l.j.do(Unknown Source) at com.aspose.slides.a.l.j.do(Unknown
Source) at com.aspose.slides.oj.(Unknown Source) at
com.aspose.slides.KI.int(Unknown Source) at com.aspose.slides.KI.short(Unknown
Source) at com.aspose.slides.cE.do(Unknown Source) at
com.aspose.slides.SlideEx.do(Unknown Source) at
com.aspose.slides.SlideEx.do(Unknown Source) at com.aspose.slides.AS.if(Unknown
Source) at com.aspose.slides.PresentationEx.do(Unknown Source) at
com.aspose.slides.PresentationEx.save(Unknown Source) at <!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>KO</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

<![endif]–>

PresentationEx pres = new PresentationEx(baseFolder +“attachedFiles/” + fileName);
pres.save(baseFolder+ “temp/” + attachedPdfFileName, com.aspose.slides. SaveFormat.Pdf);

Thanks,
Chang Shin


Even if I do not use your function, the web application log4j is change to console.
I guess your trial version do something.

Thanks,
Chang Shin

Hi Chang Shin,


Thanks for sharing the updates with us. I have created an issue with ID SLIDESJAVA-33788 to further investigate and resolve the issue. I also requested the output in console as well when you use Aspose.Slides and that sets the log4j to console application. Please also share the sample code to reproduce the same on my end as well.

Secondly, if you are getting the same issue for rest of Aspose libraries as well then I would suggest you to please make an inquiry related to all products either in Aspose.Total forum or in individual product support forums.

For, issue related to presentation rendering in MAC, it seems that you have missing font on your end that has actually been used in presentation. Can you please share the sample presentation that I may use on my end to further investigate and add the issue in our issue tracking system, if I am able to reproduce that.

We are sorry for your inconvenience,

Attached has the error message

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“맑은 고딕”;mso-fareast-theme-font:minor-fareast;
mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA”>java.lang.IllegalStateException:
Cannot find resource ‘/Aspose/Resources/GenBasR.ttf’. at
com.aspose.slides.a.B.if(Unknown Source) at com.aspose.slides.a.h.t.do(Unknown
Source) at com.aspose.slides.a.l.h.char(Unknown Source) at
com.aspose.slides.a.l.h.byte(Unknown Source) at
com.aspose.slides.a.l.h.do(Unknown Source) at com.aspose.slides.a.l.j.do(Unknown
Source) at com.aspose.slides.a.l.j.do(Unknown Source) at
com.aspose.slides.a.l.j.do(Unknown Source) at com.aspose.slides.oj.(Unknown
Source) at com.aspose.slides.KI.int(Unknown Source) at
com.aspose.slides.KI.short(Unknown Source) at com.aspose.slides.cE.do(Unknown
Source) at com.aspose.slides.SlideEx.do(Unknown Source) at
com.aspose.slides.SlideEx.do(Unknown Source) at com.aspose.slides.AS.if(Unknown
Source) at com.aspose.slides.PresentationEx.do(Unknown Source) at
com.aspose.slides.PresentationEx.save(Unknown Source) at <!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>KO</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

<![endif]–>

Hi Chang Shin,


Thanks for sharing the presentation. I have created an issue with ID SLIDESJAVA-33790 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

Hi Chang Shin,


Our development team has investigated SLIDESJAVA-33788 on their end and have tested Aspose.Slides for Java 7.1.1 for log4j dependency. There is no dependency observed for Aspose.Slides for Java. and have not been able to observe the issue. However, during investigation it has been observed that aspose-barcode-5.3.0-jdk15.jar and aspose-imaging-1.7.0-jdk15.jar set log4j to console. You may please need to consult Aspose.Barcode and Aspose.Imaging forums in this regard. Please share, if I may help you further in this regard.

Many Thanks,

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


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

We use java version 6.
is the latest one ok for java version 6 too?

Thanks,
Chang Shin


Hi Chang Shin,


I have shared the latest product release with you and you may please try using that with Java 6 with no issue. As shared in my last post Aspose.Slides for Java has no log4j dependency and our development team has not been able to observe the issue. However, during investigation it has been observed that aspose-barcode-5.3.0-jdk15.jar and aspose-imaging-1.7.0-jdk15.jar set log4j to console. You may please need to consult Aspose.Barcode and Aspose.Imaging forums in this regard.

Many Thanks,

Hi Chang Shin,


I like to share that our development team has investigated the issue on their end for your problem stated over this thread link and can not reproduce this issue in Ubuntu 11.10, Ubuntu 12.04.1, CentOs 6.3 and Mac OS 10.7.2 by using Aspose.Slides for Java v7.1.1 - v7.4.0. It reads the attached presentation and generates PDF without any exceptions.

Can you check this issue and share the environment OS version, JDK version along with other details with us.

Many Thanks,

Herea is the web server information:

Tomcat Version: Apache Tomcat/7.0.30
JVM Version: 1.6.0_35-b10-428-11M3811
JVM Vendor: Apple Inc.
OS Name: Mac OS X
OS Version: 10.8.2
OS Architecture : x86_64

The error is happened only Mac OS.
It is ok in Window 7.
We use Mac OS Server

Thanks,
Chang Shin

HI Chang Shin,


Thank you for sharing the requested information. I will share the further response with you as soon as it will be shared by our development team.

Many Thanks,


Hi Mudassir, Please resolve this bug SLIDESJAVA-33790 as we are facing the same issue as faced by Chang Shin.
We get the same GenBaseR font message ONLY on mac and it run excellently on Windows.
Please solve as soon as possible as it is very critical for our beta release.

Regards
Mohit Garg

Hi Mohit Grag,


I have observed that you have made similar inquiry in another forum thread as well. I have shared my response for your convenience over this thread link. Please share, if I may help you further in this regard.

Many Thanks,

Hi Ching Shin,


Please observe the font file attached, extract and copy in your MAC/Linux installation. Then try loading that using Aspose.Slides for Java 7.3.0 with following code. As per our development team, they have not been able to reproduce the issue by using the shared font. Please share your feedback in this regard.

FontsLoader.loadExternalFonts(new String[] “/Library/Fonts”, “/Library/Fonts/Microsoft”});


Many Thanks,

I am not clear regarding your instruction.
Can you tell me more detail?

It is my code to create pdf file.

PresentationEx pres = new PresentationEx(baseFolder+pptFilename);

//Instantiate the PdfOptions class
com.aspose.slides.PdfOptions opts = new com.aspose.slides.PdfOptions();

//Set Jpeg Quality
opts.setJpegQuality((byte)100);

//Define behavior for metafiles
opts.setSaveMetafilesAsPng(true);

//Set Text Compression level
opts.setTextCompression(com.aspose.slides.PdfTextCompression.Flate);

//Define the PDF standard
opts.setCompliance(com.aspose.slides.PdfCompliance.Pdf15);

//Save the prsentation to PDF with specified options
pres.save(baseFolder+pdfFileName, com.aspose.slides.SaveFormat.Pdf,opts);

Thanks,
Chang Shin