UIGraphicsGetPDFContextBounds()
Returns the current page bounds.
Declaration
func UIGraphicsGetPDFContextBounds() -> CGRectReturn 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.