mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-06 15:15:47 +02:00
Updated Minimal example that showcases PDF rendering with text selection enabled (markdown)
parent
acdbbfe612
commit
3814bdbec9
@ -399,7 +399,7 @@ window.onload = function () {
|
|||||||
|
|
||||||
page.getTextContent().then(function (textContent) {
|
page.getTextContent().then(function (textContent) {
|
||||||
var textLayer = new TextLayerBuilder($textLayerDiv.get(0));
|
var textLayer = new TextLayerBuilder($textLayerDiv.get(0));
|
||||||
textLayer.setTextContent(textContent);
|
textLayer.setTextContent({bidiTexts: textContent});
|
||||||
|
|
||||||
var renderContext = {
|
var renderContext = {
|
||||||
canvasContext: context,
|
canvasContext: context,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user