Stamp
Overview
Stamp เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java.
แสดงเป็นตราใน API หน้าผนังที่สามารถนําไปใช้ผ่าน {@link PdfFileStamp}.
หมวดนี้ให้ 26 วิธีในการทํางานกับวัตถุ Stamp ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: Stamp, bindImage, bindLogo, bindPdf, getFormattedText, getImageFile, getImageStream, getOriginX, getOriginY, getPageNumber, getPdfDocument, getPdfFile,และ 9 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: background, formattedText, imageFile, imageStream, originX, originY,และอีก 6 คน.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
originX | double | Read | การคืนตําแหน่งแนวของต้นกําเนิดตรา. |
originY | double | Read | กลับตําแหน่งตั้งของต้นกําเนิดตรา. |
rotation | float | Read | กลับมุมหมุนในองศา. |
background | boolean | Read | การคืนการแสดงว่าตรานี้ถูกทําหลังเนื้อหาหน้าหรือไม่. |
pageNumber | int | Read | กลับหมายเลขหน้าที่ต้องใช้ตรานี้. |
stampId | int | Read | ส่งกลับตัวจําแนกตรา. |
formattedText | FormattedText | Read | กลับ bound {@link FormattedText}, หรือ { @code null} หากไม่มีการกําหนด. |
imageFile | String | Read | กลับเส้นทางไฟล์ภาพที่ติด หรือ {@code null}. |
imageStream | InputStream | Read | กลับสตรีมภาพที่ติดต่อ หรือ {@code null}. |
pdfFile | String | Read | กลับเส้นทางไฟล์ PDF ที่ติดต่อ, หรือ {@code null}. |
pdfDocument | Document | Read | กลับเอกสาร PDF ที่ติดต่อ, หรือ {@code null}. |
pdfPageNumber | int | Read | กลับหมายเลขหน้า PDF แหล่งที่ 1. |
Methods
| Signature | Description |
|---|---|
Stamp() | สร้างตัวอย่าง {@code Stamp} ที่ว่างใหม่. |
bindLogo(formattedText: FormattedText) | การผูกพัน {@link FormattedText} เป็นเนื้อหาข้อความ (โลโก้) ของตรานี้. |
bindLogo(logoFile: String) | การอุดหนุนความสะดวก: เชื่อมไฟล์ภาพเป็นโลโก้. |
bindImage(imageFile: String) | การผูกไฟล์ภาพเป็นแหล่ง stamp. |
bindImage(imageStream: InputStream) | เชื่อมโยงคลื่นภาพเป็นแหล่ง stamp. |
bindPdf(pdfFile: String) | การอุดหนุนความสะดวก: เชื่อมต่อหน้าแรกของ {@code pdfFile} เป็นแหล่ง stamp. |
bindPdf(pdfStream: InputStream) | ส่งผลการผูกหน้าแรกของ PDF stream เป็นแหล่ง stamp. |
bindPdf(pdfFile: String, pageNumber: int) | ส่งรหัสหน้า PDF เป็นแหล่งที่ออกรางวัล. |
bindPdf(document: Document, pageNumber: int) | การผูกหน้าจากเอกสารที่มีอยู่เป็นแหล่ง stamp. |
setOrigin(x: double, y: double) | กําหนดแหล่งกําเนิด (ตําแหน่ง) ของตราบนหน้า. |
getOriginX() → double | การคืนตําแหน่งแนวของต้นกําเนิดตรา. |
getOriginY() → double | กลับตําแหน่งตั้งของต้นกําเนิดตรา. |
getRotation() → float | กลับมุมหมุนในองศา. |
setRotation(rotation: float) | กําหนดมุมหมุนเป็นกีฬา. |
isBackground() → boolean | การคืนการแสดงว่าตรานี้ถูกทําหลังเนื้อหาหน้าหรือไม่. |
setBackground(background: boolean) | กําหนดว่า เซ็นต์นี้จะแสดงอยู่เบื้องหลังเนื้อหาหน้าหรือไม่. |
getPageNumber() → int | กลับหมายเลขหน้าที่ต้องใช้ตรานี้. |
setPageNumber(pageNumber: int) | กําหนดหมายเลขหน้าที่ต้องใช้ตรานี้. |
getStampId() → int | ส่งกลับตัวจําแนกตรา. |
setStampId(stampId: int) | วางตัวจําแนกตราสินค้า. |
getFormattedText() → FormattedText | กลับ bound {@link FormattedText}, หรือ { @code null} หากไม่มีการกําหนด. |
getImageFile() → String | กลับเส้นทางไฟล์ภาพที่ติด หรือ {@code null}. |
getImageStream() → InputStream | กลับสตรีมภาพที่ติดต่อ หรือ {@code null}. |
getPdfFile() → String | กลับเส้นทางไฟล์ PDF ที่ติดต่อ, หรือ {@code null}. |
getPdfDocument() → Document | กลับเอกสาร PDF ที่ติดต่อ, หรือ {@code null}. |
getPdfPageNumber() → int | กลับหมายเลขหน้า PDF แหล่งที่ 1. |