From 1b77888400d874a8c0b23521bd1629987ab2becd Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 9 Jul 2021 18:18:22 +0200 Subject: [PATCH] XFA - Keep xfa layer on top of the others (bug 1719629) --- web/pdf_page_view.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/pdf_page_view.js b/web/pdf_page_view.js index 4cf10b0fc..960529ba6 100644 --- a/web/pdf_page_view.js +++ b/web/pdf_page_view.js @@ -496,6 +496,11 @@ class PDFPageView { div.appendChild(textLayerDiv); } + if (this.xfaLayer?.div) { + // The xfa layer needs to stay on top. + div.appendChild(this.xfaLayer.div); + } + textLayer = this.textLayerFactory.createTextLayerBuilder( textLayerDiv, this.id - 1,