mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-09 19:29:34 +08:00
Add Clear method to PdfObjectArray
This commit is contained in:
parent
319d40718c
commit
e89519d010
@ -413,6 +413,11 @@ func (array *PdfObjectArray) Append(objects ...PdfObject) {
|
||||
}
|
||||
}
|
||||
|
||||
// Clear resets the array to an empty state.
|
||||
func (array *PdfObjectArray) Clear() {
|
||||
array.vec = []PdfObject{}
|
||||
}
|
||||
|
||||
// ToFloat64Array returns a slice of all elements in the array as a float64 slice. An error is
|
||||
// returned if the array contains non-numeric objects (each element can be either PdfObjectInteger
|
||||
// or PdfObjectFloat).
|
||||
|
Loading…
x
Reference in New Issue
Block a user