Setting Document Defaults

Hi,

I am using Aspose words for java.I want to set some document defaults values for paragraph.i used

doc.getStyles().get(StyleIdentifier.NORMAL).getParagraphFormat().setLineSpacing(2);

and

builder.getParagraphFormat().setLineSpacing(2);

I want to avoid builder, whether my first method works fine in all scenarios and all formats

Hi
Thanks for your request. In most cases setting formatting in Normal style will work for you because in most cases styles used in the document are inherited from Normal style. However, sometimes formatting is set explicitly in nodes, in these cases, setting properties of styles will have no effect.
Best regards,