C#을 통해 PPT에 텍스트 워터마크 추가
서버 측 API를 사용하여 PPT 파일에 워터마크를 표시하는 고유한 .NET 앱을 빌드합니다.
C#을 사용하여 PPT 파일에 워터마크를 삽입하는 방법
PPT 파일을 워터마크하기 위해, 우리는
기능이 풍부하고 강력하며 사용하기 쉬운 C# 플랫폼용 문서 조작 API인 API입니다. 열려 있는
패키지 관리자, 검색 아포즈.슬라이드 설치합니다. 패키지 관리자 콘솔에서 다음 명령을 사용할 수도 있습니다.
명령
PM> Install-Package Aspose.Slides.NET
C#을 통해 PPT에 워터마크를 추가하는 단계
자신의 환경에서 다음 워크플로를 시도하려면 aspose.slides.dll 이 필요합니다.
Presentation 클래스의 인스턴스 생성
마스터 프레젠테이션 선택
AddAutoShape를 사용하여 모양 유형 추가
AddTextFrame을 사용하여 워터마크 텍스트 추가
시스템 요구 사항
.NET용 Aspose.Slides는 모든 주요 운영 체제에서 지원됩니다. 다음 전제 조건이 있는지 확인하십시오.
- Microsoft Windows 또는 .NET Framework, .NET Core, Windows Azure, Mono 또는 Xamarin 플랫폼과 호환되는 OS.
- Microsoft Visual Studio와 같은 개발 환경.
- 프로젝트에서 참조되는 .NET용 Aspose.Slides.
PPT에 워터마크 추가 - C#
// create a Presentation from scratch
using (var presentation = new Aspose.Slides.Presentation())
{
// get the Master Slide to add watermark on all slides
var master = presentation.Masters[0];
// add a new shape using IShapeColection.AddAutoShape
var shape = master.Shapes.AddAutoShape(Aspose.Slides.ShapeType.Triangle, 0, 0, 0, 0);
// set watermark text
shape.AddTextFrame("CONFIDENTIAL");
// save presentation in PPT format
presentation.Save("output.ppt", Aspose.Slides.Export.SaveFormat.Ppt);
}
.NET API용 Aspose.Slides 정보
Aspose.Slides API는 Microsoft PowerPoint 문서를 읽고, 쓰고, 조작하고, PDF, XPS, HTML, TIFF, ODP 및 기타 다양한 형식으로 변환하는 데 사용할 수 있습니다. 처음부터 새 파일을 만들고 지원되는 관련 형식으로 저장할 수 있습니다. Aspose.Slides는 프레젠테이션, 슬라이드 및 요소를 생성, 구문 분석 또는 조작하기 위한 독립 실행형 API이며 Microsoft 또는 OpenOffice와 같은 소프트웨어에 의존하지 않습니다.Watermark PPT via Online App
Add watermark to PPT documents by visiting our Live Demos website . The live demo has the following benefits
PPT PPT 파일 형식이란 무엇입니까?
A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. A PPT file can contain several different types of information such as text, bulleted points, images, multimedia and other embedded OLE objects. Microsoft came up with newer file format for PowerPoint, known as PPTX, from 2007 onwards that is based on Office OpenXML and is different from this binary file format. Several other application programs such as OpenOffice Impress and Apple Keynote can also create PPT files.
더 읽기