PPTX convert to pdf

Hi Ching Shin,


Please try using Aspose.Slides for Java 7.3.0 on your end by copying the font shared in your operating system and setting the font path.

//Set the path where the shared font is copied in your machine
String Font_File_Path="/user/data/";

//Setting the fonts location where you have copied the used font
FontsLoader.loadExternalFonts(new String[] {Font_File_Path});

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);

Many Thanks,

Where is the shared font?


Thanks,
Chang Shin

Hi Ching Shin,


I have shared the font in my previous post over this link for your convenience.

Many Thanks,

I used aspose.slides-7.3.0.jar library
When I test other file, I got this 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.pf4dd765c.fo.do(Unknown Source)
at com.aspose.slides.pf4dd765c.fo.do(Unknown Source)
at com.aspose.slides.pf4dd765c.fo.(Unknown Source)
at com.aspose.slides.pf4dd765c.bt.(Unknown Source)
at com.aspose.slides.pf4dd765c.bs.do(Unknown Source)
at com.aspose.slides.pf4dd765c.bs.do(Unknown Source)
at com.aspose.slides.pf4dd765c.fn.do(Unknown Source)
at com.aspose.slides.pf4dd765c.fn.createScaledRendering(Unknown Source)
at com.aspose.slides.akb.do(Unknown Source)
at com.aspose.slides.ajw.int(Unknown Source)
at com.aspose.slides.ajw.try(Unknown Source)
at com.aspose.slides.PictureEx.do(Unknown Source)
at com.aspose.slides.aao.do(Unknown Source)
at com.aspose.slides.aao.if(Unknown Source)
at com.aspose.slides.aao.(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.bda.if(Unknown Source)
at com.aspose.slides.PresentationEx.do(Unknown Source)
at com.aspose.slides.PresentationEx.save(Unknown Source)


Hi Ching Shin,


As far as I see it is no more a font issue but a new issue with separate presentation. Can you please share the source presentation with us along with the code snippet that you applied on presentation to reproduce the issue. I will investigate the issue further on my end to help you out.

Many Thanks,

Company does not want to share this pptx file with you because it is company confident file.
I will ask my boss again and then let you know later.

Thanks,
Chang Shin

Hi Chang Shin, 
You may please discuss accordingly on your end and share the file with us along with used sample code. I will try to reproduce the issue and will then create a ticket for that in our issue tracking system. 
Many Thanks,

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(2)