C# 및 ASP.NET에서 PowerPoint PPTX 파일을 위한 오픈 소스 .NET API
FileFormat.Slides for .NET을 사용하여 .NET 애플리케이션 내에서 Microsoft PowerPoint 문서에 텍스트, 이미지, 표 및 기타 콘텐츠를 만들고 열고 삽입합니다.
.NET API용 FileFormat.Slides란 무엇입니까?
.NET API용 FileFormat.Slides - 주요 기능
.NET API용 FileFormat.Slides의 주요 기능은 다음과 같습니다.
- PowerPoint 프레젠테이션을 만들고, 읽고, 쓰고, 수정합니다.
- PPT 및 PPTX 파일 형식을 모두 지원합니다.
- 슬라이드 조작: 슬라이드를 추가, 삭제, 복제 또는 재정렬합니다.
- 텍스트, 이미지, 도형, 표를 비롯한 슬라이드 콘텐츠에 액세스하고 수정합니다.
- 슬라이드 레이아웃과 테마를 적용하고 수정합니다.
- 슬라이드 내에서 SmartArt와 차트를 사용합니다.
- 슬라이드에서 텍스트와 이미지를 추출합니다.
- 슬라이드 간 애니메이션과 전환을 지원합니다.
- PDF, XPS, 이미지(예: PNG, JPEG) 등 다양한 형식으로 프레젠테이션을 내보낼 수 있습니다.
- 미리보기 목적으로 슬라이드를 축소판으로 변환합니다.
- 오디오, 비디오, OLE 개체와 같은 내장된 개체를 처리합니다.
- 텍스트, 도형 및 차트의 고급 서식을 지정합니다.
- 슬라이드와 관련된 메모와 댓글을 처리합니다.
- 암호로 보호된 프레젠테이션 지원
- 작성자 및 제목과 같은 프레젠테이션 속성에 대한 프로그래밍적 제어.
- 서버 측 자동화 및 일괄 처리에 적합한 고성능 API입니다.
GitHub 통계
이름: FileFormat.Slides-for-.NET언어: C#
별: 13
포크: 1
특허: MIT License
저장소가 마지막으로 업데이트된 시간: 2025-02-15
.NET API를 위한 FileFormat.Slides 시작하기
GitHub 또는 Nugget에서 FileFormat.Slides for .NET 라이브러리를 다운로드하여 설치할 수 있습니다.
설치
.NET용 FileFormat.Slides를 설치하는 것은 간단하며 아래와 같이 nugget에서 설치할 수 있습니다.
.NET API용 FileFormat.Slides 설치
NuGet\Install-Package FileFormat.Slides
.NET API용 FileFormat.Slides에 대한 코드 예제
.NET에서 PowerPoint PPTX 파일을 만드는 방법?
.NET API용 FileFormat.Slides를 사용하면 몇 줄의 코드만으로 C# 및 ASP.NET 애플리케이션 내에서 빈 PPTX 파일을 만들 수 있습니다. 다음 C# 코드 샘플은 API를 사용하여 PowerPoint PPTX 파일을 만드는 방법을 보여줍니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create an object of the Presentation class. | |
Presentation presentation = Presentation.Create("blankPresentation.pptx"); | |
//Perform necessary operations. | |
//... | |
// Call the Save method to save the PowerPoint file onto the disk. | |
presentation.Save(); |
C#으로 PowerPoint 슬라이드에 텍스트를 삽입하는 방법은?
.NET용 FileFormat.Slides를 사용하면 C# 애플리케이션을 사용하여 PowerPoint PPTX 파일에 슬라이드를 추가할 수 있습니다. 다음 샘플 코드를 사용하여 .NET에서 PowerPoint PPTX 파일을 만들고, 슬라이드를 추가하고, 슬라이드에 텍스트를 삽입할 수 있습니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a new PowerPoint presentation at the specified file path | |
Presentation presentation = Presentation.Create("PowerPointPreesentation.pptx"); | |
// Create a text shape for the title and set its properties | |
TextShape shape = new TextShape(); | |
shape.Text = "Title: First Title From Fileformat.Dev"; | |
shape.TextColor = "980078"; | |
shape.FontFamily = "Arial"; | |
// Create the slide and add the text shape to it | |
Slide slide = new Slide(); | |
slide.AddTextShapes(shape); | |
// Append the slide to the presentation | |
presentation.AppendSlide(slide); | |
// Save the modified presentation | |
presentation.Save(); |
.NET에서 PowerPoint PPTX 슬라이드에 이미지를 추가하는 방법은 무엇입니까?
.NET용 FileFomrat.Slides를 사용하면 C# 또는 ASP.NET 애플리케이션 내에서 PowerPoint PPTX 파일에 이미지를 추가할 수 있습니다. 다음 C# 코드를 사용하여 API를 사용하여 이를 달성할 수 있습니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Presentation presentation = Presentation.Create("InsertImageInSlide.pptx"); | |
// Create slide | |
Slide slide = new Slide(); | |
// Add text shapes. | |
Image image1 = new Image("image.png"); | |
// Set xAxis | |
image1.X = 180.0; | |
// Set yAxis | |
image1.Y = 128.0; | |
// Set Width | |
image1.Width = 195.0; | |
// Set Height | |
image1.Height = 55.0; | |
// Add image to slide | |
slide.AddImage(image1); | |
// Adding slides | |
presentation.AppendSlide(slide); | |
// Save presentation | |
presentation.Save(); |