Hi Ponraj. M,
public static void GetPptxFont()
String MyDir = “D:\Aspose Data\”;
Aspose.Slides.Pptx.PresentationEx pres = new Aspose.Slides.Pptx.PresentationEx(MyDir + “Sample_NotesPage.pptx”);
// Aspose.Slides.Pptx.PresentationEx pres = new Aspose.Slides.Pptx.PresentationEx(MyDir + “Bullets.pptx”);
// Insert string into document.
Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder();
Aspose.Slides.Pptx.NotesSlideEx note;
foreach (SlideEx sld in pres.Slides)
builder.Write(“Slide Notes for Slide:” + sld.SlideNumber.ToString() + “\n\n”);
foreach (ShapeEx shape in note.Shapes)
if (shape is AutoShapeEx)
AutoShapeEx ashp = (AutoShapeEx)shape;
if (ashp.TextFrame != null)
// foreach (ParagraphEx para in ashp.TextFrame)
for (int i = 0; i < ashp.TextFrame.Paragraphs.Count;i++ )
para = ashp.TextFrame.Paragraphs[i];
// para.ParagraphFormat.BulletType
// para.ParagraphFormat.BulletChar;
if (para.HasBullet && para.ParagraphFormat.BulletType == BulletTypeEx.Numbered)
if (builder.ListFormat.List == null)
if (para.ParagraphFormat.NumberedBulletStyle == Aspose.Slides.Pptx.NumberedBulletStyleEx.BulletRomanLCPeriod)
builder.ListFormat.List = builder.Document.Lists.Add(Aspose.Words.Lists.ListTemplate.NumberLowercaseRomanDot);
else if (para.NumberedBulletStyle == Aspose.Slides.Pptx.NumberedBulletStyleEx.BulletArabicPeriod)
builder.ListFormat.List = builder.Document.Lists.Add(Aspose.Words.Lists.ListTemplate.BulletSquare);
else if (para.HasBullet && para.ParagraphFormat.BulletType == BulletTypeEx.Symbol)
char BulletChar=para.ParagraphFormat.BulletChar;
else if (para.HasBullet && para.ParagraphFormat.BulletType == BulletTypeEx.Picture)
foreach (PortionEx portion in para.Portions)
if (portion.Field == null && portion.Text!=String.Empty)
FontDataEx noteFont = portion.LatinFont;
//FontDataEx noteFont = portion.PortionFormat.LatinFont;
builder.Font.Name = noteFont.FontName;
builder.Font.Size = portion.FontHeight;
builder.Font.Underline = MapTextUnderline(portion.PortionFormat);
if (portion.PortionFormat.FontBold == NullableBool.True)
if (portion.PortionFormat.FontItalic == NullableBool.True)
builder.Font.Italic =val;
if(portion.PortionFormat.StrikethroughType==TextStrikethroughTypeEx.Double)
builder.Font.DoubleStrikeThrough = true;
else if (portion.PortionFormat.StrikethroughType == TextStrikethroughTypeEx.Single)
builder.Font.StrikeThrough = true;
builder.Font.DoubleStrikeThrough = false;
builder.Font.StrikeThrough = false;
builder.Write(portion.Text);
builder.Document.Save(MyDir + “outWord.docx”);
builder.Document.Save(MyDir + “out.pdf”);
builder.Document.Save(MyDir + “out.tiff”);
public static Aspose.Words.Underline MapTextUnderline(PortionFormatEx format)
if (format.FontUnderline == TextUnderlineTypeEx.Dashed)
return Aspose.Words.Underline.Dash;
else if (format.FontUnderline == TextUnderlineTypeEx.DotDash)
return Aspose.Words.Underline.DotDash;
else if (format.FontUnderline == TextUnderlineTypeEx.DotDotDash)
return Aspose.Words.Underline.DotDotDash;
else if (format.FontUnderline == TextUnderlineTypeEx.Dotted)
return Aspose.Words.Underline.Dotted;
else if (format.FontUnderline == TextUnderlineTypeEx.Double)
return Aspose.Words.Underline.Double;
else if (format.FontUnderline == TextUnderlineTypeEx.DoubleWavy)
return Aspose.Words.Underline.WavyDouble;
else if (format.FontUnderline == TextUnderlineTypeEx.Heavy)
return Aspose.Words.Underline.Thick;
else if (format.FontUnderline == TextUnderlineTypeEx.HeavyDashed)
return Aspose.Words.Underline.DashLongHeavy;
else if (format.FontUnderline == TextUnderlineTypeEx.HeavyDotDash)
return Aspose.Words.Underline.DotDashHeavy;
else if (format.FontUnderline == TextUnderlineTypeEx.HeavyDotDotDash)
return Aspose.Words.Underline.DotDotDashHeavy;
else if (format.FontUnderline == TextUnderlineTypeEx.HeavyDotted)
return Aspose.Words.Underline.DottedHeavy;
else if (format.FontUnderline == TextUnderlineTypeEx.HeavyLongDashed)
return Aspose.Words.Underline.DashLongHeavy;
else if (format.FontUnderline == TextUnderlineTypeEx.HeavyWavy)
return Aspose.Words.Underline.WavyHeavy;
else if (format.FontUnderline == TextUnderlineTypeEx.LongDashed)
return Aspose.Words.Underline.DashLong;
else if (format.FontUnderline == TextUnderlineTypeEx.None)
return Aspose.Words.Underline.None;
else if (format.FontUnderline == TextUnderlineTypeEx.NotDefined)
return Aspose.Words.Underline.None;
else if (format.FontUnderline == TextUnderlineTypeEx.Single)
return Aspose.Words.Underline.Single;
else if (format.FontUnderline == TextUnderlineTypeEx.Wavy)
return Aspose.Words.Underline.Wavy;
else if (format.FontUnderline == TextUnderlineTypeEx.Words)
return Aspose.Words.Underline.Words;
return Aspose.Words.Underline.None;