# Python via Java를 사용하여 프레젠테이션에서 글머리 기호 및 번호 매기기 목록 관리

> Aspose.Slides for Python via Java를 사용하여 PowerPoint 및 OpenDocument 프레젠테이션에서 글머리 기호 목록, 그림 글머리 기호, 다단계 목록 및 번호 매기기 목록을 만들고 서식 지정하는 방법을 배웁니다.

Source: https://docs.aspose.com/slides/ko/python-java/manage-lists/
Updated: 2026-09-09

## **개요**

Aspose.Slides for Python via Java는 PowerPoint 및 OpenDocument 프레젠테이션에서 글머리 기호와 번호 매기기 목록을 만들고 서식 지정할 수 있게 합니다. 목록 항목은 글머리 기호 설정이 해당 단락 형식을 통해 제어되는 단락입니다.

문단 수준 리스트 설정에 접근하려면 [Paragraph.getParagraphFormat](https://reference.aspose.com/slides/ko/python-java/aspose.slides/paragraph/#getParagraphFormat) 메서드를 사용하십시오. 주요 진입점은 [ParagraphFormat.getBullet](https://reference.aspose.com/slides/ko/python-java/aspose.slides/paragraphformat/#getBullet)이며, 이는 [BulletFormat](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/) 객체를 반환합니다. 이 객체를 사용하여 글머리 기호 유형, 기호, 그림, 색상, 크기, 번호 매기기 스타일 및 시작 번호를 설정할 수 있습니다.

이 문서에서는 다음과 같은 방법을 보여줍니다:
- 사용자 지정 기호를 사용한 글머리 기호 목록 만들기
- 그림 글머리 기호 만들기
- 단락 깊이를 설정하여 다중 수준 목록 만들기
- 번호 매기기 목록 만들기
- 기존 프레젠테이션에서 목록 서식을 검사하고 변경하기

## **글머리 기호 목록 만들기**

글머리 기호 목록을 만들려면 [Paragraph](https://reference.aspose.com/slides/ko/python-java/aspose.slides/paragraph/) 객체를 [TextFrame](https://reference.aspose.com/slides/ko/python-java/aspose.slides/textframe/)에 추가하고 [BulletFormat.setType](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#setType)을 [BulletType.Symbol](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bullettype/#Symbol)으로 설정합니다. 그런 다음 [BulletFormat.setChar](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#setChar), [BulletFormat.getColor](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#getColor), [BulletFormat.setHeight](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#setHeight)를 사용하여 글머리 기호 모양을 제어할 수 있습니다.

다음 Python 코드는 슬라이드에 글머리 기호 목록을 만드는 방법을 보여줍니다:
```python
import jpype
import asposeslides

if not jpype.isJVMStarted():
    jpype.startJVM()

from asposeslides.api import BulletType, NullableBool, Paragraph, Presentation, SaveFormat, ShapeType
from java.awt import Color

presentation = Presentation()
try:
    slide = presentation.getSlides().get_Item(0)
    auto_shape = slide.getShapes().addAutoShape(ShapeType.Rectangle, 20, 20, 200, 50)

    text_frame = auto_shape.getTextFrame()
    text_frame.getParagraphs().clear()

    bullet_color = Color(205, 92, 92)

    first_paragraph = Paragraph()
    first_paragraph.getParagraphFormat().getBullet().setType(BulletType.Symbol)
    first_paragraph.getParagraphFormat().getBullet().setChar('*')
    first_paragraph.getParagraphFormat().setIndent(15)
    first_paragraph.getParagraphFormat().getBullet().setBulletHardColor(NullableBool.True_)
    first_paragraph.getParagraphFormat().getBullet().getColor().setColor(bullet_color)
    first_paragraph.getParagraphFormat().getBullet().setHeight(100)
    first_paragraph.setText("The first paragraph")
    text_frame.getParagraphs().add(first_paragraph)

    second_paragraph = Paragraph()
    second_paragraph.getParagraphFormat().getBullet().setType(BulletType.Symbol)
    second_paragraph.getParagraphFormat().getBullet().setChar('*')
    second_paragraph.getParagraphFormat().setIndent(15)
    second_paragraph.getParagraphFormat().getBullet().setBulletHardColor(NullableBool.True_)
    second_paragraph.getParagraphFormat().getBullet().getColor().setColor(bullet_color)
    second_paragraph.getParagraphFormat().getBullet().setHeight(100)
    second_paragraph.setText("The second paragraph")
    text_frame.getParagraphs().add(second_paragraph)

    presentation.save("symbol_bullets.pptx", SaveFormat.Pptx)
finally:
    presentation.dispose()
```

결과:
![기호 글머리 기호](symbol_bullets.png)

## **번호 매기기 목록 만들기**

항목 순서가 중요한 경우 번호 매기기 목록을 사용합니다. [BulletFormat.setType](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#setType)을 [BulletType.Numbered](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bullettype/#Numbered)으로 설정합니다. 또한 [BulletFormat.setNumberedBulletStyle](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#setNumberedBulletStyle)를 사용하여 번호 매기기 형식을 선택하거나, 목록을 1이 아닌 다른 값에서 시작해야 할 경우 [BulletFormat.setNumberedBulletStartWith](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#setNumberedBulletStartWith)를 사용할 수 있습니다.

다음 Python 코드는 슬라이드에 번호 매기기 목록을 만드는 방법을 보여줍니다:
```python
import jpype
import asposeslides

if not jpype.isJVMStarted():
    jpype.startJVM()

from asposeslides.api import BulletType, Paragraph, Presentation, SaveFormat, ShapeType

presentation = Presentation()
try:
    slide = presentation.getSlides().get_Item(0)
    auto_shape = slide.getShapes().addAutoShape(ShapeType.Rectangle, 20, 20, 90, 80)

    text_frame = auto_shape.getTextFrame()
    text_frame.getParagraphs().clear()

    first_paragraph = Paragraph()
    first_paragraph.getParagraphFormat().getBullet().setType(BulletType.Numbered)
    first_paragraph.setText("Apple")
    text_frame.getParagraphs().add(first_paragraph)

    second_paragraph = Paragraph()
    second_paragraph.getParagraphFormat().getBullet().setType(BulletType.Numbered)
    second_paragraph.setText("Orange")
    text_frame.getParagraphs().add(second_paragraph)

    third_paragraph = Paragraph()
    third_paragraph.getParagraphFormat().getBullet().setType(BulletType.Numbered)
    third_paragraph.setText("Banana")
    text_frame.getParagraphs().add(third_paragraph)

    presentation.save("numbered_bullets.pptx", SaveFormat.Pptx)
finally:
    presentation.dispose()
```

결과:
![번호 매기기 글머리 기호](numbered_bullets.png)

## **그림 글머리 기호 만들기**

Aspose.Slides를 사용하면 일반 글머리 기호를 이미지로 교체할 수 있습니다. 그림 글머리 기호는 아이콘이나 작은 투명 PNG 파일과 같이 작은 크기에서도 읽기 쉬운 간단한 이미지에 가장 적합합니다.

{{% alert color="info" title="Note" %}}
일반 글머리 기호를 이미지로 교체하려는 경우 투명 배경이 있는 간단한 그래픽을 선택하십시오. 이러한 이미지는 사용자 지정 글머리 기호로 잘 작동합니다.

이미지는 매우 작은 크기로 축소된다는 점을 기억하십시오. 따라서 목록의 글머리 기호로 사용할 때도 선명하고 시각적으로 효과적인 이미지를 선택하는 것이 좋습니다.
{{% /alert %}}

그림 글머리 기호를 만들려면 [Presentation.getImages](https://reference.aspose.com/slides/ko/python-java/aspose.slides/presentation/#getImages)에 이미지를 추가하고 반환된 이미지 객체를 [BulletFormat.getPicture](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#getPicture)에 할당합니다. 이미지를 할당하기 전에 [BulletFormat.setType](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bulletformat/#setType)을 [BulletType.Picture](https://reference.aspose.com/slides/ko/python-java/aspose.slides/bullettype/#Picture)으로 설정합니다.

예를 들어 "image.png"라는 이미지가 있다고 가정합니다:
![글머리 기호용 그림](picture_for_bullets.png)

다음 Python 코드는 슬라이드에 그림 글머리 기호를 만드는 방법을 보여줍니다:
```python
import jpype
import asposeslides

if not jpype.isJVMStarted():
    jpype.startJVM()

from asposeslides.api import BulletType, Images, Paragraph, Presentation, SaveFormat, ShapeType

presentation = Presentation()
try:
    slide = presentation.getSlides().get_Item(0)
    auto_shape = slide.getShapes().addAutoShape(ShapeType.Rectangle, 20, 20, 200, 50)

    text_frame = auto_shape.getTextFrame()
    text_frame.getParagraphs().clear()

    image = Images.fromFile("image.png")
    try:
        bullet_image = presentation.getImages().addImage(image)
    finally:
        image.dispose()

    first_paragraph = Paragraph()
    first_paragraph.getParagraphFormat().getBullet().setType(BulletType.Picture)
    first_paragraph.getParagraphFormat().getBullet().getPicture().setImage(bullet_image)
    first_paragraph.getParagraphFormat().setIndent(15)
    first_paragraph.getParagraphFormat().getBullet().setHeight(100)
    first_paragraph.setText("The first paragraph")
    text_frame.getParagraphs().add(first_paragraph)

    second_paragraph = Paragraph()
    second_paragraph.getParagraphFormat().getBullet().setType(BulletType.Picture)
    second_paragraph.getParagraphFormat().getBullet().getPicture().setImage(bullet_image)
    second_paragraph.getParagraphFormat().setIndent(15)
    second_paragraph.getParagraphFormat().getBullet().setHeight(100)
    second_paragraph.setText("The second paragraph")
    text_frame.getParagraphs().add(second_paragraph)

    presentation.save("picture_bullets.pptx", SaveFormat.Pptx)
finally:
    presentation.dispose()
```

결과:
![그림 글머리 기호](picture_bullets.png)

## **다단계 목록 만들기**

[ParagraphFormat.setDepth](https://reference.aspose.com/slides/ko/python-java/aspose.slides/paragraphformat/#setDepth)를 사용하여 목록 항목을 서로 다른 수준에 배치합니다. 레벨 0은 최상위 수준이며, 레벨 1은 그 아래에 중첩됩니다.

다음 Python 코드는 다단계 글머리 기호 목록을 만드는 방법을 보여줍니다:
```python
import jpype
import asposeslides

if not jpype.isJVMStarted():
    jpype.startJVM()

from asposeslides.api import Paragraph, Presentation, SaveFormat, ShapeType

presentation = Presentation()
try:
    slide = presentation.getSlides().get_Item(0)
    auto_shape = slide.getShapes().addAutoShape(ShapeType.Rectangle, 20, 20, 260, 110)

    text_frame = auto_shape.getTextFrame()
    text_frame.getParagraphs().clear()

    first_paragraph = Paragraph()
    first_paragraph.getParagraphFormat().setDepth(0)
    first_paragraph.setText("My text - Depth 0")
    text_frame.getParagraphs().add(first_paragraph)

    second_paragraph = Paragraph()
    second_paragraph.getParagraphFormat().setDepth(1)
    second_paragraph.setText("My text - Depth 1")
    text_frame.getParagraphs().add(second_paragraph)

    third_paragraph = Paragraph()
    third_paragraph.getParagraphFormat().setDepth(2)
    third_paragraph.setText("My text - Depth 2")
    text_frame.getParagraphs().add(third_paragraph)

    fourth_paragraph = Paragraph()
    fourth_paragraph.getParagraphFormat().setDepth(3)
    fourth_paragraph.setText("My text - Depth 3")
    text_frame.getParagraphs().add(fourth_paragraph)

    presentation.save("multilevel_bullets.pptx", SaveFormat.Pptx)
finally:
    presentation.dispose()
```

결과:
![다단계 목록](multilevel_list.png)

## **기존 목록 변경**

기존 프레젠테이션에서 목록 서식을 변경하려면 대상 단락에 접근하여 해당 [ParagraphFormat.getBullet](https://reference.aspose.com/slides/ko/python-java/aspose.slides/paragraphformat/#getBullet) 설정을 업데이트합니다. 목록을 만들 때 사용한 동일한 속성을 사용하여 PPT, PPTX 또는 ODP 파일에서 로드한 목록을 검사하거나 수정할 수 있습니다.

다음 Python 코드는 텍스트 프레임의 첫 번째 단락을 번호 매기기 목록 스타일로 변경합니다:
```python
import jpype
import asposeslides

if not jpype.isJVMStarted():
    jpype.startJVM()

from asposeslides.api import BulletType, NumberedBulletStyle, Presentation, SaveFormat

presentation = Presentation("input.pptx")
try:
    slide = presentation.getSlides().get_Item(0)
    auto_shape = slide.getShapes().get_Item(0)
    paragraph = auto_shape.getTextFrame().getParagraphs().get_Item(0)

    paragraph.getParagraphFormat().getBullet().setType(BulletType.Numbered)
    paragraph.getParagraphFormat().getBullet().setNumberedBulletStyle(NumberedBulletStyle.BulletRomanUCPeriod)
    paragraph.getParagraphFormat().getBullet().setNumberedBulletStartWith(1)
    paragraph.getParagraphFormat().setMarginLeft(30)
    paragraph.getParagraphFormat().setIndent(-20)

    presentation.save("updated_list.pptx", SaveFormat.Pptx)
finally:
    presentation.dispose()
```

## **FAQ**

**글머리 기호 및 번호 매기기 목록을 PDF 또는 이미지로 내보낼 수 있나요?**

예. 대상 형식이 해당 텍스트 레이아웃 및 글머리 기호 기능을 지원하는 경우 Aspose.Slides는 목록 서식을 그대로 유지합니다.

**기존 프레젠테이션에서 목록을 편집할 수 있나요?**

예. 프레젠테이션을 로드하고, 대상 단락에 접근하여 해당 [ParagraphFormat.getBullet](https://reference.aspose.com/slides/ko/python-java/aspose.slides/paragraphformat/#getBullet) 설정을 검사하거나 업데이트한 뒤 프레젠테이션을 저장하면 됩니다.

**목록에 비라틴 텍스트를 포함할 수 있나요?**

예. 목록 항목 텍스트는 유니코드 문자를 포함할 수 있으므로 다국어 프레젠테이션에서도 목록을 만들 수 있습니다. 프레젠테이션에 사용된 글꼴이 필요한 문자를 지원하는지 확인하십시오.
