Need to take Default paragraph Spacing and Indent

Hi,

I want to take default paragraph Spacing and Indent from the document.Please provide me with sample code.

Hello
Thanks for your request. Unfortunately, currently there is no public API to retrieve default document properties. I have logged this as a feature request. Once this option will be implemented, I will inform you.
Also if it is acceptable for you, you can try using the following code:

// Using this code you can get default Paragraph formating
System.out.println(doc.getStyles().get(StyleIdentifier.NORMAL).getParagraphFormat().getLeftIndent());
System.out.println(doc.getStyles().get(StyleIdentifier.NORMAL).getParagraphFormat().getRightIndent());
System.out.println(doc.getStyles().get(StyleIdentifier.NORMAL).getParagraphFormat().getSpaceAfter());
System.out.println(doc.getStyles().get(StyleIdentifier.NORMAL).getParagraphFormat().getSpaceBefore());

Best regards,

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

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