자바에서 PPT에 주석 달기


무료 평가판 다운로드

Java API용 GroupDocs.Annotation 정보

GroupDocs.Annotation for Java API는 Mac, Windows 또는 Ubuntu에서 PDF, Word 및 기타 문서에 주석을 추가할 수 있는 라이브러리입니다. GroupDocs.Annotation for Java는 이미지 및 기타 다양한 문서에서 주석 생성, 추가, 편집, 삭제, 추출 및 내보내기를 포괄적으로 지원하는 주석 관리를 위한 기본 Java API입니다. 이 페이지에서 볼 수 있는 지원되는 문서 형식의 전체 목록입니다. 이 라이브러리를 사용하면 PPT 문서뿐만 아니라 Word, Excel, PowerPoint, Outlook 이메일, Visio, Adobe, OpenDocument, OpenOffice, Photoshop, AutoCad 및 기타 여러 유형의 문서와 함께 작업할 수 있습니다. GroupDocs.Annotation for Java API를 사용하면 새 메모를 만들고 추가하고, 주석을 편집하고, 주석과 주석을 추출하고, 문서에서 제거할 수 있습니다. 라이브러리는 텍스트, 다중선, 영역, 밑줄, 포인트, 워터마크, 화살표, 타원, 텍스트 대체, 거리, 텍스트 필드, PDF, HTML, Microsoft Word 문서, 스프레드시트, 다이어그램, 프레젠테이션, 그림, 이미지 및 기타 여러 파일 형식. 예제(아래 참조)는 PPT 문서 작업을 보여줍니다. 이 예제에서는 GroupDocs 작업 방법의 주요 단계를 볼 수 있습니다. 주석: 라이선스 설정, 작업할 문서 열기, 주석, 데이터 개체를 추가하여 요구 사항에 따라 주석 속성을 설정하고 결과를 필요한 위치에 저장합니다. 또한 github 페이지 또는 제품 문서.

Java에서 PPT에 주석을 추가하는 단계

GroupDocs.Annotation Java 개발자가 몇 가지 간단한 단계를 구현하여 Java 기반 응용 프로그램 내의 PPT 파일에 다양한 주석 유형을 쉽게 추가할 수 있습니다.

  • 댓글과 날짜가 포함된 Reply 객체를 생성합니다.
  • AreaAnnotation 개체를 만들고 영역 옵션을 설정하고 답글을 추가합니다.
  • Annotator 객체를 생성하고 영역 주석을 추가합니다.
  • 출력 파일을 저장합니다.

시스템 요구 사항

GroupDocs.Annotation for Java API는 모든 주요 플랫폼 및 운영 체제에서 지원됩니다. 아래 코드를 실행하기 전에 시스템에 다음 필수 구성 요소가 설치되어 있는지 확인하십시오.

  • 운영 체제: 마이크로소프트 윈도우, 리눅스, 맥OS
  • 개발 환경: NetBeans, Intellij IDEA, Eclipse 등
  • Java 런타임 환경: Java 7(1.7) 이상
  • GroupDocs Artifact Repository에서 최신 버전의 Java용 GroupDocs.Annotation을 다운로드하세요.

주석 미리보기 및 코드 샘플

// Create an instance of Reply class and add comments
Reply firstReply = new Reply();
firstReply.setComment("First comment");
firstReply.setRepliedOn(Calendar.getInstance().getTime());

Reply secondReply = new Reply();
secondReply.setComment("Second comment");
secondReply.setRepliedOn(Calendar.getInstance().getTime());

List<Reply> replies = new ArrayList<Reply>();
replies.add(firstReply);
replies.add(secondReply);

// Create an instance of AreaAnnotation class and set options
AreaAnnotation area = new AreaAnnotation();
area.setBackgroundColor(65535);
area.setBox(new Rectangle(100, 100, 100, 100));
area.setCreatedOn(Calendar.getInstance().getTime());
area.setMessage("This is area annotation");
area.setOpacity(0.7);
area.setPageNumber(0);
area.setPenColor(65535);
area.setPenStyle(PenStyle.Dot);
area.setPenWidth((byte) 3);
area.setReplies(replies);

// Create an instance of Annotator class
Annotator annotator = new Annotator("input.bmp");

// Add annotation
annotator.add(area);

// Save to file
annotator.save("output.bmp");
annotator.dispose();

Annotation preview image

Java의 PPT에서 주석을 제거하는 단계

GroupDocs.Annotation Java 개발자가 몇 가지 간단한 단계를 구현하여 Java 기반 응용 프로그램 내의 PPT 파일에서 주석 세부 정보를 쉽게 제거할 수 있습니다.

  • 댓글과 날짜가 포함된 Reply 객체를 생성합니다.
  • SaveOptions 개체를 인스턴스화하고 AnnotationTypes = AnnotationType.None을 설정합니다.
  • 결과 문서 경로 또는 스트림과 SaveOptions 개체를 사용하여 저장 메서드를 호출합니다.

// Create an instance of Annotator class 
Annotator annotator = new Annotator("C://input.bmp");

// Remove annotation by set type None 
SaveOptions saveOptions = new SaveOptions();
saveOptions.setAnnotationTypes(AnnotationType.None);

// Save annotation to output file
annotator.save("C://output.bmp", saveOptions);
annotator.dispose();

Java에서 PPT의 주석을 편집하는 단계

GroupDocs.Annotation Java 개발자가 몇 가지 간단한 단계를 구현하여 Java 기반 응용 프로그램 내의 PPT 파일에서 다양한 주석 속성을 쉽게 업데이트할 수 있습니다.

  • ImportAnnotations = true로 인스턴스화된 LoadOptions가 있는 입력 문서 경로 또는 스트림으로 Annotator 개체를 인스턴스화합니다.
  • 일부 AnnotationBase 구현을 만들고 기존 주석의 ID(해당 ID를 가진 주석을 찾을 수 없는 경우 아무 것도 변경되지 않음) 또는 주석의 경로 목록(기존의 모든 주석이 제거됨)을 설정합니다.
  • 전달된 주석으로 Annotator 객체의 업데이트 메서드를 호출합니다.
  • 결과 문서 경로 또는 스트림과 SaveOptions 개체를 사용하여 저장 메서드를 호출합니다.

String outputPath = "UpdateAnnotation.bmp";

// Create an instance of Annotator class
Annotator annotator = new Annotator("input.bmp");

// Create an instance of Reply class for first example and add comments
Reply reply1 = new Reply();
reply1.setComment("Original first comment");
reply1.setRepliedOn(Calendar.getInstance().getTime());

Reply reply2 = new Reply();
reply2.setComment("Original second comment");
reply2.setRepliedOn(Calendar.getInstance().getTime());

java.util.List replies = new ArrayList();
replies.add(reply1);
replies.add(reply2);

// Create an instance of AreaAnnotation class and set options
AreaAnnotation original = new AreaAnnotation();
original.setId(1);
original.setBackgroundColor(65535);
original.setBox(new Rectangle(100, 100, 100, 100));
original.setCreatedOn(Calendar.getInstance().getTime());
original.setMessage("This is original annotation");
original.setReplies(replies);

// Add original annotation
annotator.add(original);
annotator.save(outputPath);
annotator.dispose();

LoadOptions loadOptions = new LoadOptions();

// Open annotated document
Annotator annotator1 = new Annotator(outputPath, loadOptions);

// Create an instance of Reply class for update first example
Reply reply3 = new Reply();
reply3.setComment("Updated first comment");
reply3.setRepliedOn(Calendar.getInstance().getTime());

Reply reply4 = new Reply();
reply4.setComment("Updated second comment");
reply4.setRepliedOn(Calendar.getInstance().getTime());

java.util.List replies1 = new ArrayList();
replies1.add(reply3);
replies1.add(reply4);

// Suggest we want change some properties of existed annotation
AreaAnnotation updated = new AreaAnnotation();
updated.setId(1);
updated.setBackgroundColor(255);
updated.setBox(new Rectangle(0, 0, 50, 200));
updated.setCreatedOn(Calendar.getInstance().getTime());
updated.setMessage("This is updated annotation");
updated.setReplies(replies1);

// Update and save annotation
annotator1.update(updated);
annotator1.save(outputPath);
annotator1.dispose();

Java의 PPT에서 주석을 추출하는 단계

GroupDocs.Annotation Java 개발자가 몇 가지 간단한 단계를 구현하여 Java 기반 애플리케이션 내의 PPT 파일에서 쉽게 문서에 주석을 달고 주석 정보를 추출할 수 있습니다.

  • 댓글과 날짜가 포함된 Reply 객체를 생성합니다.
  • LoadOptions 개체를 인스턴스화하고 true 인수를 사용하여 SetImportAnnotations를 호출합니다.
  • 목록 유형으로 변수를 정의하십시오.
  • get 메서드를 호출하고 결과를 위의 변수에 반환합니다.

// For using this example input file ("annotated.bmp") must be with annotations
LoadOptions loadOptions = new LoadOptions();

// Create an instance of Annotator class and get annotations
final Annotator annotator = new Annotator("annotated.bmp", loadOptions);
List annotations = annotator.get();

문서 및 이미지에 주석을 추가, 제거, 편집, 추출하는 라이브 데모

지금 바로 GroupDocs.Annotation Live Demos 웹사이트를 방문하여 주석을 PPT 파일에 추가, 제거, 편집 및 추출하세요. 라이브 데모에는 다음과 같은 이점이 있습니다.

API를 다운로드할 필요가 없습니다

코드를 작성할 필요가 없습니다.

소스파일만 올려주세요

파일 저장을 위한 다운로드 링크 받기

PPT 파일 형식 정보

PPT 확장자를 가진 파일은 SlideShow로 표시하기 위한 슬라이드 모음으로 구성된 PowerPoint 파일을 나타냅니다. Microsoft PowerPoint 97-2003에서 사용되는 이진 파일 형식을 지정합니다. PPT 파일에는 텍스트, 글머리 기호, 이미지, 멀티미디어 및 기타 포함된 OLE 개체와 같은 여러 가지 유형의 정보가 포함될 수 있습니다. Microsoft는 2007년부터 Office OpenXML을 기반으로 하며 이 이진 파일 형식과 다른 PPTX로 알려진 PowerPoint용 최신 파일 형식을 내놓았습니다. OpenOffice Impress 및 Apple Keynote와 같은 여러 다른 응용 프로그램도 PPT 파일을 만들 수 있습니다.

더 읽어보기 PPT 파일 형식 정보

기타 널리 사용되는 문서 형식 작업

아래에 설명된 대로 널리 사용되는 일부 파일 형식에서 주석 속성을 업데이트합니다.

Annotate PDF document

(Adobe Portable Document Format)

Annotate DOC document

(Microsoft Word Document)

Annotate DOCM document

(Microsoft Word Macro-Enabled Document)

Annotate DOCX document

(Microsoft Word Open XML Document)

Annotate DOT document

(Microsoft Word Document Template)

Annotate DOTX document

(Word Open XML Document Template)

Annotate RTF document

(Rich Text Document)

Annotate ODT document

(Open Document Text)

Annotate XLS document

(Microsoft Excel Binary File Format)

Annotate XLSX document

(Microsoft Excel Open XML Spreadsheet)

Annotate XLSM document

(Microsoft Excel Macro-Enabled Spreadsheet)

Annotate XLSB document

(Microsoft Excel Binary Worksheet)

Annotate ODS document

(Open Document Spreadsheet)

Annotate PPT document

(PowerPoint Presentation)

Annotate PPTX document

(PowerPoint Open XML Presentation)

Annotate PPSX document

(PowerPoint Open XML Slide Show)

Annotate POTM document

(Microsoft PowerPoint Template)

Annotate PPTM document

(Microsoft PowerPoint Presentation)

Annotate PPS document

(Microsoft PowerPoint 97-2003 Slide Show)

Annotate ODP document

(OpenDocument Presentation)

Annotate HTML document

(HyperText Markup Language)

Annotate TIFF document

(Tagged Image File Format)

Annotate PNG document

(Portable Network Graphic)

Annotate EML document

(E-mail Message)

Annotate MSG document

(Microsoft Outlook E-mail Message)

Annotate VSD document

(Microsoft Visio 2003-2010 Drawing)

Annotate VSDX document

(Microsoft Visio Drawing)

Annotate VSS document

(Microsoft Visio 2003-2010 Stencil)

Annotate VST document

(Microsoft Visio 2013 Stencil)

Annotate DWG document

(Autodesk Design Data Formats)

Annotate DXF document

(AutoCAD Drawing Interchange)

Annotate DCM document

(Digital Imaging and Communications in Medicine)

Annotate WMF document

(Windows Metafile)

Annotate EMF document

(Enhanced Metafile Format)

Back to top
 한국인