PdfFileStamp

개요

PdfFileStamp은 Aspose.PDF FOSS에서 .NET용 클래스입니다. 상속 대상: System.IDisposable.

스탬프, 페이지 번호, 머리글, 바닥글 및 워터마크를 추가하기 위한 파사드.

이 클래스는 .NET 프로그램에서 PdfFileStamp 객체를 작업하기 위한 45개의 메서드를 제공합니다. 사용 가능한 메서드에는 AddFooter, AddGrayscaleImageStamp, AddHeader, AddImageStamp, AddPageNumber, AddPageNumbers, AddStamp, AddTextStamp, AddWatermark, BindPdf, Close, Dispose 및 추가 2개의 메서드가 포함됩니다. 모든 공개 멤버는 Aspose.PDF FOSS for .NET 패키지를 설치한 후 모든 .NET 애플리케이션에서 접근할 수 있습니다. 속성: ConvertTo, Document, InputFile, InputStream, KeepSecurity, NumberingStyle 및 추가 16개.

속성

이름유형액세스설명
DocumentDocument읽기바인드된 문서.
InputFilestring?읽기/쓰기입력 파일 경로.
OutputFilestring?읽기/쓰기출력 파일 경로.
PageWidthfloat읽기제본된 문서의 첫 페이지 너비.
PageHeightfloat읽기제본된 문서의 첫 페이지 높이.
InputStreamStream?읽기/쓰기입력 스트림 — 설정이 PDF를 즉시 바인딩하여 페이지 차원 쿼리가 새로운 입력을 반영하도록 합니다.
OutputStreamStream?읽기/쓰기출력 스트림 — 명시적인 대상이 전달되지 않을 때 Save()가 여기로 씁니다.
KeepSecuritybool읽기/쓰기true인 경우, 원본 문서의 보안(암호화, 권한)이 Save 시 유지되어야 합니다.
NumberingStyleNumberingStyle읽기/쓰기AddPageNumber에 대한 번호 매기기 스타일.
OptimizeSizebool읽기/쓰기힌트: 저장된 출력의 크기를 최적화하세요.
PageNumberRotationfloat읽기/쓰기회전(도) AddPageNumber 스탬프에 적용됩니다.
StampIdint읽기/쓰기스탬프 식별자가 AddStamp에 의해 content-stream 주석으로 삽입되었습니다.
StartingNumberint읽기/쓰기시작 번호는 AddPageNumber에 의해 사용됩니다.
ConvertToPdfFormat읽기/쓰기PDF/A 또는 저장된 출력에 대한 PDF 버전 대상.
PosUpperLeftint읽기상단 왼쪽 위치를 가져옵니다.
PosUpperMiddleint읽기pos 상단 중간을 가져옵니다.
PosUpperRightint읽기위 오른쪽 위치를 가져옵니다.
PosSidesLeftint읽기왼쪽 위치를 가져옵니다.
PosSidesRightint읽기pos 측면을 오른쪽으로 가져옵니다.
PosBottomLeftint읽기하단 왼쪽 위치를 가져옵니다.
PosBottomMiddleint읽기아래쪽 중앙 위치를 가져옵니다.
PosBottomRightint읽기pos 우측 하단을 가져옵니다.

메서드

시그니처설명
PdfFileStamp()무상태 모드를 위한 기본 생성자입니다.
PdfFileStamp(document: Document)이미 로드된 Document를 바인드합니다.
PdfFileStamp(document: Document, outputStream: Stream)Document를 바인드하고 매개변수가 없는 Save를 위해 출력 스트림을 미리 구성합니다.
PdfFileStamp(document: Document, outputFile: string)Document를 바인드하고 매개변수가 없는 Save를 위해 출력 파일 경로를 미리 구성합니다.
PdfFileStamp(inputStream: Stream, outputStream: Stream)입력 스트림에서 열고, 저장 시 출력 스트림에 씁니다.
PdfFileStamp(inputStream: Stream, outputStream: Stream, keepSecurity: bool)입력 스트림에서 열고, 저장 시 출력 스트림에 씁니다.
PdfFileStamp(inputFile: string, outputFile: string)입력 파일에서 열고, 저장 시 출력 파일에 씁니다.
PdfFileStamp(inputFile: string, outputFile: string, keepSecurity: bool)입력 파일에서 열고, 저장 시 출력 파일에 씁니다.
PdfFileStamp(inputData: byte[], outputPath: string)주어진 입력 바이트에 대한 PdfFileStamp을 생성하고, Close() 시 지정된 출력 파일에 저장합니다.
BindPdf(path: string)파일 경로에서 PDF 문서를 바인드하여 상태 기반 처리를 수행합니다.
BindPdf(inputStream: Stream)스트림에서 PDF 문서를 바인드하여 상태 기반 처리를 수행합니다.
BindPdf(doc: Document)PDF 문서를 바인드하여 상태 기반 처리를 수행합니다.
Save(destFile: string)수정된 문서를 지정된 경로에 저장합니다.
Save(destStream: Stream)수정된 문서를 스트림에 저장합니다.
Save()수정된 문서를 바이트 배열에 저장합니다.
AddStamp(stamp: Stamp)바인드된 문서에 파사드 스탬프를 추가합니다.
Close()문서를 닫고 출력 경로에 저장합니다.
Dispose()IDisposable 구현; Close에 위임합니다.
AddHeader(formattedText: FormattedText, topMargin: float)이 PdfFileStamp 인스턴스에서 AddHeader(formattedText, topMargin)를 호출합니다.
AddHeader(formattedText: FormattedText, topMargin: float, leftMargin: float, rightMargin: float)이 PdfFileStamp 인스턴스에서 AddHeader(formattedText, topMargin, leftMargin, rightMargin)를 호출합니다.
AddHeader(imageStream: Stream, topMargin: float)이 PdfFileStamp 인스턴스에서 AddHeader(imageStream, topMargin)를 호출합니다.
AddHeader(inputStream: Stream, topMargin: float, leftMargin: float, rightMargin: float)이 PdfFileStamp 인스턴스에서 AddHeader(inputStream, topMargin, leftMargin, rightMargin)를 호출합니다.
AddHeader(imageFile: string, topMargin: float)이 PdfFileStamp 인스턴스에서 AddHeader(imageFile, topMargin)를 호출합니다.
AddHeader(imageFile: string, topMargin: float, leftMargin: float, rightMargin: float)이 PdfFileStamp 인스턴스에서 AddHeader(imageFile, topMargin, leftMargin, rightMargin)를 호출합니다.
AddFooter(formattedText: FormattedText, bottomMargin: float)이 PdfFileStamp 인스턴스에서 AddFooter(formattedText, bottomMargin)를 호출합니다.
AddFooter(formattedText: FormattedText, bottomMargin: float, leftMargin: float, rightMargin: float)이 PdfFileStamp 인스턴스에서 AddFooter(formattedText, bottomMargin, leftMargin, rightMargin)를 호출합니다.
AddFooter(imageStream: Stream, bottomMargin: float)이 PdfFileStamp 인스턴스에서 AddFooter(imageStream, bottomMargin)를 호출합니다.
AddFooter(imageStream: Stream, bottomMargin: float, leftMargin: float, rightMargin: float)이 PdfFileStamp 인스턴스에서 AddFooter(imageStream, bottomMargin, leftMargin, rightMargin)를 호출합니다.
AddFooter(imageFile: string, bottomMargin: float)이 PdfFileStamp 인스턴스에서 AddFooter(imageFile, bottomMargin)를 호출합니다.
AddFooter(imageFile: string, bottomMargin: float, leftMargin: float, rightMargin: float)이 PdfFileStamp 인스턴스에서 AddFooter(imageFile, bottomMargin, leftMargin, rightMargin)를 호출합니다.
AddPageNumber(formattedText: FormattedText)이 PdfFileStamp 인스턴스에서 AddPageNumber(formattedText)를 호출합니다.
AddPageNumber(formattedText: FormattedText, position: int)이 PdfFileStamp 인스턴스에서 AddPageNumber(formattedText, position)를 호출합니다.
AddPageNumber(formattedText: FormattedText, position: int, leftMargin: float, rightMargin: float, topMargin: float, bottomMargin: float)이 PdfFileStamp 인스턴스에서 AddPageNumber(formattedText, position, leftMargin, rightMargin, topMargin, bottomMargin)를 호출합니다.
AddPageNumber(formattedText: FormattedText, x: float, y: float)이 PdfFileStamp 인스턴스에서 AddPageNumber(formattedText, x, y)을(를) 호출합니다.
AddPageNumber(formatString: string)이 PdfFileStamp 인스턴스에서 AddPageNumber(formatString)을(를) 호출합니다.
AddPageNumber(formatString: string, position: int)이 PdfFileStamp 인스턴스에서 AddPageNumber(formatString, position)을(를) 호출합니다.
AddPageNumber(formatString: string, position: int, leftMargin: float, rightMargin: float, topMargin: float, bottomMargin: float)이 PdfFileStamp 인스턴스에서 AddPageNumber(formatString, position, leftMargin, rightMargin, topMargin, bottomMargin)을(를) 호출합니다.
AddPageNumber(formatString: string, x: float, y: float)이 PdfFileStamp 인스턴스에서 AddPageNumber(formatString, x, y)를 호출합니다.
AddTextStamp(input: byte[], text: string, hAlign: HorizontalAlignment, vAlign: VerticalAlignment, fontSize: double, fontName: string)모든 페이지에 텍스트 스탬프를 추가합니다.
AddPageNumbers(input: byte[], format: string, hAlign: HorizontalAlignment, vAlign: VerticalAlignment, fontSize: double)모든 페이지에 페이지 번호를 추가합니다.
AddHeader(input: byte[], text: string, fontSize: double, margin: double)모든 페이지에 헤더 텍스트를 추가합니다.
AddFooter(input: byte[], text: string, fontSize: double, margin: double)모든 페이지에 푸터 텍스트를 추가합니다.
AddWatermark(input: byte[], text: string, fontSize: double, rotation: double, opacity: double)모든 페이지에 워터마크 텍스트를 추가합니다.
AddImageStamp(input: byte[], rgbPixels: byte[], width: int, height: int, displayWidth: double, displayHeight: double, x: double, y: double)모든 페이지에 RGB 이미지 스탬프를 추가합니다.
AddGrayscaleImageStamp(input: byte[], grayPixels: byte[], width: int, height: int, displayWidth: double, displayHeight: double, x: double, y: double)모든 페이지에 그레이스케일 이미지 스탬프를 추가합니다.

참조

 한국어