Creates a PDF by following a set of drawing instructions and saves it to a specified URL.
- iOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
The URL where the complete PDF file is saved.
UIGraphicsclosure that, when invoked by the renderer, executes a set of drawing instructions to create the output PDF.
PDFRenderer .Drawing Actions
A pointer to an
NSErrorobject that is populated if there is a problem saving the completed PDF file.
No return value in Swift.
You provide a set of drawing instructions as the block argument to this method, and the method attempts to write the resulting PDF to the supplied URL.
You can call this method repeatedly to create multiple PDFs, each of which has identical dimensions and format.