Hi,
I am trying to convert a PPT which includes Unicode (specifically, Chinese characters) to Pdf, however, the conversion process seems to replace some of the Chinese characters with blank squares. The original PPT displays the characters fine. The code below is how I am converting the PPT to PDF (the SaveFileAs variable is the path to PPT file).
using (Presentation presentation = new Presentation(SaveFileAs))
{
// Instantiate the PdfOptions class
PdfOptions pdfOptions = new PdfOptions();
// Set Jpeg Quality
pdfOptions.JpegQuality = 90;
// Define behavior for metafiles
pdfOptions.SaveMetafilesAsPng = true;
// Set Text Compression level
pdfOptions.TextCompression = PdfTextCompression.Flate;
// Define the PDF standard
pdfOptions.Compliance = PdfCompliance.Pdf15;
SaveFileAs = SaveFileAs.Substring(0, SaveFileAs.LastIndexOf('.'));
SaveFileAs = SaveFileAs + ".pdf";
// Save the presentation to PDF with specified options
presentation.Save(SaveFileAs, SaveFormat.Pdf, pdfOptions);
}
Attached are screen shots of what is looks like in the PPT and then the same text in PDF after the conversion.
ChinesePPT.png (392 Bytes)
ChinesePDF.png (468 Bytes)
Any ideas why the conversion to Pdf is not including some of the special characters?
Many thanks,
Jack