Replies: 1 comment
-
Issue was related to jpeg 2000 support (I needed to include wasm: pdfjsLib.getDocument({ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm rendering PDF pages in may web app by using page.render(). Since upgrade to version 5+ some pdfs look different. Instead of rendering visible part of PDF, an OCR text layer is rendered in canvas (and is visible) instead of earlier visible layer (including eg. scanned stamps))
It should look like this (and in version 4, or directly displayed in Firefox look that way):
But after using version 5, it looks like this:
You can clearly see that bottom part has changed:

My code is quite straight forward (and did not changed between 4 and 5) and behavior is the same if i delete the code responsible for adding text layer.
page.render({
canvasContext: canvas.getContext("2d")
viewport
});
thanks for help.
Regards,
Beta Was this translation helpful? Give feedback.
All reactions