aspose Slides for Java如何获取文档的缩进以及行距信息?
slides行距问题-getLineSpacing.docx (37.3 KB)
@Gavin_Zhang,
谢谢您的耐心。要获取段落的实际属性,您应该首先从段落格式中获取有效数据。请尝试使用以下代码片段:
IParagraphFormatEffectiveData effectiveFormat = paragraph.getParagraphFormat().getEffective();
System.out.println("Space before: " + effectiveFormat.getSpaceBefore());
System.out.println("Space after: " + effectiveFormat.getSpaceAfter());
System.out.println("Space within: " + effectiveFormat.getSpaceWithin());
System.out.println("Indent: " + effectiveFormat.getIndent());
System.out.println("Margin left: " + effectiveFormat.getMarginLeft());