---
title: PaperMarkup
framework: paperkit
role: symbol
role_heading: Structure
path: paperkit/papermarkup
---

# PaperMarkup

The data model object for storing markup data created from a PaperViewController.

## Declaration

```swift
struct PaperMarkup
```

## Mentioned in

Integrating PaperKit into your app

## Topics

### Creating markup

- [init(bounds:)](paperkit/papermarkup/init(bounds:).md)
- [init(dataRepresentation:)](paperkit/papermarkup/init(datarepresentation:).md)

### Serializing markup

- [dataRepresentation()](paperkit/papermarkup/datarepresentation().md)

### Accessing elements

- [subelements](paperkit/papermarkup/subelements.md)
- [id](paperkit/papermarkup/id.md)
- [bounds](paperkit/papermarkup/bounds.md)
- [contentsRenderFrame](paperkit/papermarkup/contentsrenderframe.md)
- [featureSet](paperkit/papermarkup/featureset.md)
- [indexableContent](paperkit/papermarkup/indexablecontent.md)
- [backgroundColor](paperkit/papermarkup/backgroundcolor.md)

### Rendering markup

- [draw(in:frame:options:)](paperkit/papermarkup/draw(in:frame:options:).md)

### Appending content

- [append(contentsOf:)](paperkit/papermarkup/append(contentsof:)-5668.md)
- [append(contentsOf:)](paperkit/papermarkup/append(contentsof:)-5tgti.md)

### Transforming content

- [transformContent(_:)](paperkit/papermarkup/transformcontent(_:).md)

### Inserting elements

- [insertNewShape(configuration:frame:rotation:)](paperkit/papermarkup/insertnewshape(configuration:frame:rotation:).md)
- [insertNewImage(_:frame:rotation:)](paperkit/papermarkup/insertnewimage(_:frame:rotation:).md)
- [insertNewLine(configuration:from:to:startMarker:endMarker:)](paperkit/papermarkup/insertnewline(configuration:from:to:startmarker:endmarker:).md)
- [insertNewTextbox(attributedText:frame:rotation:)](paperkit/papermarkup/insertnewtextbox(attributedtext:frame:rotation:)-53rs.md)
- [insertNewTextbox(attributedText:frame:rotation:)](paperkit/papermarkup/insertnewtextbox(attributedtext:frame:rotation:)-67igk.md)

### Removing content

- [removeContentUnsupported(by:)](paperkit/papermarkup/removecontentunsupported(by:).md)

### Default Implementations

- [Identifiable Implementations](paperkit/papermarkup/identifiable-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Data model

- [MarkupOrderedSet](paperkit/markuporderedset.md)
- [MarkupID](paperkit/markupid.md)
