PdfNumber
Overview
PdfNumber is a class in Aspose.PDF FOSS for Python.
Represents a PDF number primitive (integer or real).
This class provides 3 methods for working with PdfNumber objects in Python programs.
Available methods include: __init__, to_double, to_int.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__(value: int | float | str) | Initialize a PdfNumber with a numeric value. |
to_double() → float | Get the numeric value as a double-precision float. |
to_int() → int | Get the numeric value as an integer (truncates). |