Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[breaking] Refactor TextLayer to use pdfjs.renderTextLayer #944

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

wojtekmaj
Copy link
Owner

@wojtekmaj wojtekmaj commented Feb 9, 2022

  • Text layer alignment significantly improved
  • New prop: enhanceTextSelection
  • New prop: onRenderTextLayerError
  • New prop: onRenderTextLayerSuccess

Breaking changes:

  • onGetTextSuccess is now called with an object containing items and styles
  • TextLayer.css must be imported for TextLayer to work properly

Closes #477
Closes #513
Closes #599
Closes #650
Closes #903
Closes #976

@niktnikt
Copy link

Hey, just wondering when will this be merged with the main branch?

@mp205
Copy link

mp205 commented Apr 14, 2022

Hey, just wondering when will this be merged with the main branch?

+1

- Text layer alignment significantly improved
- New prop: enhanceTextSelection
- New prop: onRenderTextLayerError
- New prop: onRenderTextLayerSuccess

Breaking changes:
- onGetTextSuccess is now called with an object containing items and styles
- TextLayer.css must be imported for TextLayer to work properly
@wojtekmaj wojtekmaj merged commit d283857 into main Apr 20, 2022
@wojtekmaj wojtekmaj deleted the render-text-layer branch April 20, 2022 07:58
wojtekmaj added a commit that referenced this pull request Apr 20, 2022
- Text layer alignment significantly improved
- New prop: enhanceTextSelection
- New prop: onRenderTextLayerError
- New prop: onRenderTextLayerSuccess

Breaking changes:
- onGetTextSuccess is now called with an object containing items and styles
- TextLayer.css must be imported for TextLayer to work properly
wojtekmaj added a commit that referenced this pull request Apr 20, 2022
- Text layer alignment significantly improved
- New prop: enhanceTextSelection
- New prop: onRenderTextLayerError
- New prop: onRenderTextLayerSuccess

Breaking changes:
- onGetTextSuccess is now called with an object containing items and styles
- TextLayer.css must be imported for TextLayer to work properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment