* Add an annotation reference to the page's /Annots array. * Internal method - also invalidates the annotation cache.
(annotRef: PdfRef)
| 2332 | * Internal method - also invalidates the annotation cache. |
| 2333 | */ |
| 2334 | private addAnnotationRef(annotRef: PdfRef): void { |
| 2335 | let annots = this.dict.getArray("Annots"); |
| 2336 | |
| 2337 | if (!annots) { |
| 2338 | annots = new PdfArray([]); |
| 2339 | this.dict.set("Annots", annots); |
| 2340 | } |
| 2341 | |
| 2342 | annots.push(annotRef); |
| 2343 | this.invalidateAnnotationCache(); |
| 2344 | } |
| 2345 | |
| 2346 | /** |
| 2347 | * Invalidate the annotation cache. |
no test coverage detected