diff --git a/Minimal-example-that-showcases-PDF-rendering-with-text-selection-enabled.md b/Minimal-example-that-showcases-PDF-rendering-with-text-selection-enabled.md index 743c70d..bb3e6dd 100644 --- a/Minimal-example-that-showcases-PDF-rendering-with-text-selection-enabled.md +++ b/Minimal-example-that-showcases-PDF-rendering-with-text-selection-enabled.md @@ -398,7 +398,7 @@ window.onload = function () { $pdfContainer.append($textLayerDiv); page.getTextContent().then(function (textContent) { - var textLayer = new TextLayerBuilder({ textLayerDiv: $textLayerDiv.get(0) }); + var textLayer = new TextLayerBuilder($textLayerDiv.get(0)); textLayer.setTextContent(textContent); var renderContext = {