Net에서 VST에 주석 달기


무료 평가판 다운로드

Net API용 GroupDocs.Annotation 정보

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

Net에서 VST에 주석을 추가하는 단계

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

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

시스템 요구 사항

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

  • 운영 체제: 마이크로소프트 윈도우, 리눅스, 맥OS
  • 개발 환경: Visual Studio, Xamarin, MonoDevelop
  • 프레임워크: .NET Framework, .NET Standard, .NET Core, Mono
  • NuGet에서 최신 버전의 .NET용 GroupDocs.Annotation을 다운로드합니다.

주석 미리보기 및 코드 샘플

//Add text field annotation to the document from local disk
using (Annotator annotator = new Annotator("input.bmp"))
{
    TextFieldAnnotation textField = new TextFieldAnnotation
    {
        BackgroundColor = 65535,
        Box = new Rectangle(100, 100, 100, 100),
        CreatedOn = DateTime.Now,
        Text = "Some text",
        FontColor = 65535,
        FontSize = 12,
        Message = "This is text field annotation",
        Opacity = 0.7,
        PageNumber = 0,
        PenStyle = PenStyle.Dot,
        PenWidth = 3,
        FontFamily = "Arial",
        TextHorizontalAlignment = HorizontalAlignment.Center,
        Replies = new List
        {
            new Reply
            {
                Comment = "First comment",
                RepliedOn = DateTime.Now
            },
            new Reply
            {
                Comment = "Second comment",
                RepliedOn = DateTime.Now
            }
        }
    };
    annotator.Add(textField);
    annotator.Save("result.bmp");
}

Annotation preview image

Net의 VST에서 주석을 제거하는 단계

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

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

// 1- How to remove annotation from document using annotation index

using (Annotator annotator = new Annotator("result.bmp"))
{
    annotator.Remove(0);
    annotator.Save("removed.bmp");
}

// 2- How to remove annotation from document using annotation object

using (Annotator annotator = new Annotator("result.bmp"))
{
    var tmp = annotator.Get();
    annotator.Remove(tmp[0]);
    annotator.Save("removed.bmp");
}

// 3- How to remove some annotations from document using list of ID’s

using (Annotator annotator = new Annotator("result.bmp"))
{
    var idList = new List{1, 2, 3};
    annotator.Remove(idList);
    annotator.Save("removed.bmp");
}

// 4- How to remove some annotations from document using list of annotations

using (Annotator annotator = new Annotator("result.bmp"))
{
    var tmp = annotator.Get();
    annotator.Remove(tmp);
    annotator.Save("removed.bmp");
}

Net에서 VST의 주석을 편집하는 단계

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

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

// open annotated document
using (Annotator annotator = new Annotator("result.bmp"))
{
    //assuming we are going to change some properties of existing annotation
        AreaAnnotation updated = new AreaAnnotation
            {
                    // It's important to set existed annotation Id
                    Id = 1,
                    BackgroundColor = 255,
                    Box = new Rectangle(0, 0, 50, 200),
                    CreatedOn = DateTime.Now,
                    Message = "This is updated annotation",
                    Replies = new List
                    {
                        new Reply
                        {
                            Comment = "Updated first comment",
                            RepliedOn = DateTime.Now
                        },
                        new Reply
                        {
                            Comment = "Updated second comment",
                            RepliedOn = DateTime.Now
                        }
                    }
                };
        // update annotation
        annotator.Update(updated);
        annotator.Save("result.bmp");
}

Net의 VST에서 주석을 추출하는 단계

GroupDocs.Annotation Net 개발자가 몇 가지 간단한 단계를 구현하여 Net 기반 응용 프로그램 내의 VST 파일에서 문서에 쉽게 주석을 달고 주석 정보를 추출할 수 있습니다.

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

// for using this example input file ("annotated.bmp") must be with annotations
using (Annotator annotator = new Annotator("annotated.bmp"))
{
    List annotations = annotator.Get();
    XmlSerializer formatter = new XmlSerializer(typeof(List));
    using (FileStream fs = new FileStream("annotations.xml", FileMode.Create))
    {
        fs.SetLength(0);
        formatter.Serialize(fs, annotations);
    }
}

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

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

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

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

소스파일만 올려주세요

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

VST 파일 형식 정보

VST 확장자를 가진 파일은 Microsoft Visio로 만든 벡터 이미지 파일이며 추가 파일을 만들기 위한 템플릿 역할을 합니다. 이러한 템플릿 파일은 이진 파일 형식이며 새 Visio 드로잉을 만드는 데 사용되는 기본 레이아웃 및 설정을 포함합니다. Microsoft Visio에서 VST 파일을 열면 문서 작업을 계속하기 위한 기존 설정이 포함됩니다. 일반적으로 Visio 파일은 시각적 개체, 순서도, UML 다이어그램, 정보 흐름, 조직도, 소프트웨어 다이어그램, 네트워크 레이아웃, 데이터베이스 모델, 개체 매핑 및 기타 유사한 정보가 포함된 드로잉을 만드는 데 사용됩니다. Visio를 사용하여 생성된 파일은 PNG, BMP, PDF 등과 같은 다양한 파일 형식으로 내보낼 수도 있습니다.

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

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

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

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
 한국인