SetPageBox

Properti halaman

Deskripsi

Mengeset dimensi boundary rectangle halaman terpilih. MediaBox merepresentasikan medium fisik halaman

CropBox merepresentasikan area visible halaman; konten akan di-clip ke area ini. BleedBox mirip CropBox, tetapi merupakan rectangle yang dipakai di lingkungan produksi

TrimBox menunjukkan dimensi akhir halaman setelah dipotong, dan ArtBox mendefinisikan luas konten bermakna halaman sesuai maksud pembuat halamannya

Perilaku versi PDF: entri dictionary halaman BleedBox, TrimBox, dan ArtBox membutuhkan PDF 1.3. Saat versi dokumen lebih rendah yang tidak terkunci aktif, SetPageBox otomatis menaikkan dokumen ke PDF 1.3 dan mencatat boundary box terpilih di AutoBumpedFeatures. Jika pemanggil mengunci PDF 1.2, compatibility gate menolak penyimpanan dengan LastErrorCode 602

Sintaks

Delphi

Function TPDFlib.SetPageBox(BoxType: Integer; Left, Top, Width, Height: Double): Integer;

ActiveX

Function PDFlib::SetPageBox(BoxType As Long, Left As Double, Top As Double, Width As Double, Height As Double) As Long

DLL

int DLSetPageBox(int InstanceID, int BoxType, double Left, double Top, double Width, double Height);

Parameter

BoxType1 = MediaBox 2 = CropBox 3 = BleedBox 4 = TrimBox 5 = ArtBox
LeftKoordinat horizontal tepi kiri rectangle
TopKoordinat vertikal tepi atas rectangle
WidthLebar rectangle Tinggi rectangle
Height