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

Free Support Forum - aspose.com

Drop cap

Hi, is it possible to remove a drop cap from a document?
I have try the code below but it is not working.

For Each para As Aspose.Words.Paragraph In doc.GetChildNodes(NodeType.Paragraph, True)

If para.ParagraphFormat.DropCapPosition <> DropCapPosition.None Then

para.ParagraphFormat.DropCapPosition = DropCapPosition.None
Next para

Hi Pavlos,

Thanks for your inquiry. You can use the following code snippet to remove the Drop Cap. However, Aspose.Words does not set DropCapPosition to DropCapPosition.None. I have logged this issue as WORDSNET-8657 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Document doc = new Document(MyDir + "in.docx");
foreach (Paragraph para in doc.FirstSection.Body.Paragraphs)
    if (para.ParagraphFormat.DropCapPosition != DropCapPosition.None)
doc.Save(MyDir + "Out.docx");

The issues you have found earlier (filed as WORDSNET-8657) have been fixed in this .NET update and this Java update.

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