<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPDFScannerPopNumber(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGPDFScannerPopNumber"
  },
  "title" : "CGPDFScannerPopNumber(_:_:)"
}
-->

# CGPDFScannerPopNumber(_:_:)

Retrieves a real value object from the scanner stack.

```
func CGPDFScannerPopNumber(_ scanner: CGPDFScannerRef, _ value: UnsafeMutablePointer<CGPDFReal>?) -> Bool
```

## Parameters

`scanner`

A valid scanner object.

`value`

On output, points to the real value object popped from the scanner stack.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the real value is retrieved successfully; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The number retrieved from the scanner can be a real value or an integer value. However, the result is always converted to a value of type [`CGPDFReal`](/documentation/CoreGraphics/CGPDFReal).

---

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)