---
title: CGPDFDocumentRelease
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgpdfdocumentrelease
---

# CGPDFDocumentRelease

Decrements the retain count of a PDF document.

## Declaration

```occ
extern void CGPDFDocumentRelease(CGPDFDocumentRef document);
```

## Parameters

- `document`: The PDF document to release.

## Discussion

Discussion This function is equivalent to CFRelease, except that it does not cause an error if the document parameter is NULL.

## See Also

### Retaining and Releasing PDF Documents

- [CGPDFDocumentRetain](coregraphics/cgpdfdocumentretain.md)
