* Copy an array, remapping all reference elements.
(arr: PdfArray)
| 347 | * Copy an array, remapping all reference elements. |
| 348 | */ |
| 349 | private copyArray(arr: PdfArray): PdfArray { |
| 350 | const items: PdfObject[] = []; |
| 351 | |
| 352 | for (const item of arr) { |
| 353 | items.push(this.copyObject(item)); |
| 354 | } |
| 355 | |
| 356 | return new PdfArray(items); |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * Copy a stream, handling encryption state. |
no test coverage detected