<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/images-and-pdf",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Images and PDF"
}
-->

# Images and PDF

Create and manage images, including those that use bitmap and PDF formats.

## Topics

### Representations

[`UIImage`](/documentation/UIKit/UIImage)

An object that manages image data in your app.

[`SymbolConfiguration`](/documentation/UIKit/UIImage/SymbolConfiguration-swift.class)

An object that contains the specific font, size, style, and weight attributes to apply to a symbol image.

[`Configuration`](/documentation/UIKit/UIImage/Configuration-swift.class)

A configuration object that contains the traits that the system uses when selecting the current image variant.

### Image creation

[Supporting HDR images in your app](/documentation/UIKit/supporting-hdr-images-in-your-app)

​
Load, display, edit, and save HDR images using SwiftUI and Core Image.
​

[`UIImageJPEGRepresentation`](/documentation/UIKit/UIImage/jpegData(compressionQuality:))

Returns a data object that contains the image in JPEG format.

[`UIImagePNGRepresentation`](/documentation/UIKit/UIImage/pngData())

Returns a data object that contains the specified image in PNG format.

### Photo album

[`UIImageWriteToSavedPhotosAlbum`](/documentation/UIKit/UIImageWriteToSavedPhotosAlbum(_:_:_:_:))

Adds the specified image to the user’s Camera Roll album.

[`UISaveVideoAtPathToSavedPhotosAlbum`](/documentation/UIKit/UISaveVideoAtPathToSavedPhotosAlbum(_:_:_:_:))

Adds the movie from the specified path to the user’s Camera Roll album.

[`UIVideoAtPathIsCompatibleWithSavedPhotosAlbum`](/documentation/UIKit/UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(_:))

Returns a Boolean value that indicates whether the specified video is compatible to save to the user’s Camera Roll album.

### PDF creation

[`UIGraphicsBeginPDFContextToData`](/documentation/UIKit/UIGraphicsBeginPDFContextToData(_:_:_:))

Creates a PDF graphics context that targets the specified mutable data object.

[`UIGraphicsBeginPDFContextToFile`](/documentation/UIKit/UIGraphicsBeginPDFContextToFile(_:_:_:))

Creates a PDF graphics context that targets a file at the specified path.

[`UIGraphicsEndPDFContext`](/documentation/UIKit/UIGraphicsEndPDFContext())

Closes a PDF graphics context and pops it from the current context stack.

[`UIGraphicsBeginPDFPage`](/documentation/UIKit/UIGraphicsBeginPDFPage())

Marks the beginning of a new page in a PDF context and configures it using default values.

[`UIGraphicsBeginPDFPageWithInfo`](/documentation/UIKit/UIGraphicsBeginPDFPageWithInfo(_:_:))

Marks the beginning of a new page in a PDF context and configures it using the specified custom values.

[`UIGraphicsGetPDFContextBounds`](/documentation/UIKit/UIGraphicsGetPDFContextBounds())

Returns the current page bounds.

[`UIGraphicsAddPDFContextDestinationAtPoint`](/documentation/UIKit/UIGraphicsAddPDFContextDestinationAtPoint(_:_:))

Creates a jump destination in the current page.

[`UIGraphicsSetPDFContextDestinationForRect`](/documentation/UIKit/UIGraphicsSetPDFContextDestinationForRect(_:_:))

Links a rectangular area on the current page to the specified jump destination.

[`UIGraphicsSetPDFContextURLForRect`](/documentation/UIKit/UIGraphicsSetPDFContextURLForRect(_:_:))

Links a rectangular area on the current page to the specified URL.

### PDF screenshots

[`UIScreenshotService`](/documentation/UIKit/UIScreenshotService)

An object that coordinates the creation of PDF screenshots of an app’s content.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)