* Get the object number at a given index. * * @param index - 0-based index from XRef entry's indexInStream * @returns Object number, or null if index is out of range
(index: number)
| 213 | * @returns Object number, or null if index is out of range |
| 214 | */ |
| 215 | getObjectNumber(index: number): number | null { |
| 216 | if (!this.index || index < 0 || index >= this.index.length) { |
| 217 | return null; |
| 218 | } |
| 219 | |
| 220 | return this.index[index].objNum; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Get the number of objects in this stream. |
no outgoing calls
no test coverage detected