Contents

UIGraphicsGetPDFContextBounds()

Returns the current page bounds.

Declaration

func UIGraphicsGetPDFContextBounds() -> CGRect

Return Value

The current page bounds associated with the PDF context or CGRectZero if the current context is not a PDF context.

Discussion

If a page has not yet been started, this function returns the default media box you specified when you created the PDF context; otherwise, it returns the page bounds for the current page.

See Also

PDF creation