We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b3aa94 commit 346e169Copy full SHA for 346e169
kernel/src/main/java/com/itextpdf/kernel/pdf/annot/PdfAnnotation.java
@@ -424,10 +424,12 @@ public PdfPage getPage() {
424
} else {
425
for (int i = 1; i <= doc.getNumberOfPages(); i++) {
426
PdfPage docPage = doc.getPage(i);
427
- for (PdfAnnotation annot : docPage.getAnnotations()) {
428
- if (annotationIndirectReference.equals(annot.getPdfObject().getIndirectReference())) {
429
- page = docPage;
430
- break;
+ if (!docPage.isFlushed()) {
+ for (PdfAnnotation annot : docPage.getAnnotations()) {
+ if (annotationIndirectReference.equals(annot.getPdfObject().getIndirectReference())) {
+ page = docPage;
431
+ break;
432
+ }
433
}
434
435
0 commit comments