Contents

setBounds(_:for:)

Sets the bounds for the specified box.

Declaration

func setBounds(_ bounds: CGRect, for box: PDFDisplayBox)
func setBounds(_ bounds: NSRect, for box: PDFDisplayBox)

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