Record Class FixedDocument.PdfBackground
java.lang.Object
java.lang.Record
io.leandev.appfuse.pdf.FixedDocument.PdfBackground
- All Implemented Interfaces:
FixedDocument.Element
- Enclosing class:
FixedDocument
public static record FixedDocument.PdfBackground(String id, byte[] bytes, int pageNumber)
extends Record
implements FixedDocument.Element
PDF 頁面外觀底稿,固定為 STATIC 層。頁碼從 1 起,不匯入註解、AcroForm 或動作。
來源頁面須無旋轉、CropBox 原點為 0、UserUnit 為 1,尺寸與目標頁相同;不自動縮放。
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPdfBackground(String id, byte[] bytes, int pageNumber) Creates an instance of aPdfBackgroundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.layer()intReturns the value of thepageNumberrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
PdfBackground
Creates an instance of aPdfBackgroundrecord class.- Parameters:
id- the value for theidrecord componentbytes- the value for thebytesrecord componentpageNumber- the value for thepageNumberrecord component
-
-
Method Details
-
layer
- Specified by:
layerin interfaceFixedDocument.Element
-
bytes
public byte[] bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceFixedDocument.Element- Returns:
- the value of the
idrecord component
-
pageNumber
public int pageNumber()Returns the value of thepageNumberrecord component.- Returns:
- the value of the
pageNumberrecord component
-