Free Support Forum - aspose.com

Bullets/ signature bullets are rendered as "n" in UNix env but rendered correctly in Windows machine

Hi,

Bullets/ square bullets are rendered as "n" when we convert ppt to pdf using aspose slides in UNix env. In windows they are rendered correctly.

I have attached the sample ppt and the pdf images from both the env for details.

I am using aspose.slides-2.5.0.jar

Please help me on this.

The code used for converison is

Presentation pres = AsposeContext.getInstance().getPresentation(

sourcPath);

PdfOptions pdfOptions = new PdfOptions();

pdfOptions.setJpegQuality(100);

// Define behavior for meta files

pdfOptions.setSaveMetafilesAsPng(true);

// Set Text Compression level

pdfOptions

.setTextCompression(com.aspose.slides.export.PdfTextCompression.FLATE);

// Define the PDF standard

pdfOptions

.setCompliance(com.aspose.slides.export.PdfCompliance.PDF_15);

inputStream = new FileInputStream(sourcPath);

bufferedInputStream = new BufferedInputStream(inputStream);

fileOutputStream = new FileOutputStream(destinationPath);

bufferedOutputStream = new BufferedOutputStream(fileOutputStream);

int nextChar;

while ((nextChar = bufferedInputStream.read()) != -1) {

bufferedOutputStream.write(Character

.toUpperCase((char) nextChar));

}

bufferedOutputStream.flush();

pres.save(bufferedOutputStream,

com.aspose.slides.export.SaveFormat.PDF, pdfOptions);

pres.save(destinationPath, com.aspose.slides.export.SaveFormat.PDF,

pdfOptions);

// Ashutosh : added for adding bookmarks to the ppt

asposeContext.setPdfLicense();

PdfContentEditor editor = new PdfContentEditor();

editor.bindPdf(destinationPath);

editor.createBookmarks();

editor.save(destinationPath);

logger.debug("convert PowerPoint To Pdf completed");

Thanks

Hi Suryakant,

I have observed the code snippet shared by you and it is fine. In my humble opinion the issue may be due to missing font used for bullets. I would suggest you to please try using Aspose.Slides for Java 2.6.0 and secondly, please investigate that whether the JDK is able to access the font that has been used for bullets. If the issue still persists then please share your feedback and I will add it in our issue tracking system. Actually, I am requesting you to please verify on your end as I am not having Unix environment on my end and will be needing time to set that up.

Thanks and Regards,