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

NameTypeAccessDescription
originXdoubleReadการคืนตําแหน่งแนวของต้นกําเนิดตรา.
originYdoubleReadกลับตําแหน่งตั้งของต้นกําเนิดตรา.
rotationfloatReadกลับมุมหมุนในองศา.
backgroundbooleanReadการคืนการแสดงว่าตรานี้ถูกทําหลังเนื้อหาหน้าหรือไม่.
pageNumberintReadกลับหมายเลขหน้าที่ต้องใช้ตรานี้.
stampIdintReadส่งกลับตัวจําแนกตรา.
formattedTextFormattedTextReadกลับ bound {@link FormattedText}, หรือ { @code null} หากไม่มีการกําหนด.
imageFileStringReadกลับเส้นทางไฟล์ภาพที่ติด หรือ {@code null}.
imageStreamInputStreamReadกลับสตรีมภาพที่ติดต่อ หรือ {@code null}.
pdfFileStringReadกลับเส้นทางไฟล์ PDF ที่ติดต่อ, หรือ {@code null}.
pdfDocumentDocumentReadกลับเอกสาร PDF ที่ติดต่อ, หรือ {@code null}.
pdfPageNumberintReadกลับหมายเลขหน้า PDF แหล่งที่ 1.

Methods

SignatureDescription
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.

See Also

 ภาษาไทย