Saving data externally

By default, PSPDFKit tries to save annotations into PDFs. If this fails (e.g. if the file is in a nonwritable location), it’ll use the fallback store. This store is located at /Library/PrivateDocuments/PSPDFKit.

Each document is referenced by its unique UID. Annotations are saved as binary objects.

Next, there’s the image cache at /Library/Caches/PSPDFKit. You can control if and how much is saved by customizing the global PDFCache object. This folder is also cleared when a device is running low on memory.

Lastly, some external data is saved in /tmp/PSPDFKit. This data mostly consists of video files that need to be unpacked before they can be displayed. This filter will be cleaned up by the OS on every cold boot of the device or in low memory situations.