Instance Method

setBounds:forBox:

Sets the bounds for the specified box.

Declaration

iOS, Mac Catalyst
- (void)setBounds:(CGRect)bounds forBox:(PDFDisplayBox)box;
macOS
- (void)setBounds:(NSRect)bounds forBox:(PDFDisplayBox)box;

Discussion

If the box does not exist, this method creates it for you.

To remove a box, pass NSZeroRect for the bounds (note that you cannot remove the media box). If the box bounds are not in range, this method throws a range exception.

See Also

Getting Information About a Page

document

Returns the PDFDocument object with which the page is associated.

label

Returns the label for the page.

- boundsForBox:

Returns the bounds for the specified PDF display box.

rotation

Sets the rotation angle for the page in degrees.