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

chore: add OCR scaffolding to PDF Viewer #38127

Merged
merged 2 commits into from May 2, 2023
Merged

chore: add OCR scaffolding to PDF Viewer #38127

merged 2 commits into from May 2, 2023

Conversation

codebytere
Copy link
Member

Description of Change

Fixes the following error seen when opening any PDF file:

[60553:0426/210509.819782:INFO:CONSOLE(419)] "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'isPdfOcrAlwaysActive')", source: chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/pdf_viewer_wrapper.js (419)

This is a PDF Accessibility feature under active development here that eventually i'd like to support, which allows screen readers to read PDFs from scanned images that they wouldn't normally be able to. For now, this adds minimal scaffolding for the feature and leaves it disabled.

Checklist

Release Notes

Notes: Fixes a console error seen when loading PDFs.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/25-x-y PR should also be added to the "25-x-y" branch. labels Apr 26, 2023
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 26, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 27, 2023
@codebytere codebytere merged commit d95f9d2 into main May 2, 2023
15 checks passed
@codebytere codebytere deleted the support-pdf-ocr branch May 2, 2023 08:27
@release-clerk
Copy link

release-clerk bot commented May 2, 2023

Release Notes Persisted

Fixes a console error seen when loading PDFs.

@trop
Copy link
Contributor

trop bot commented May 2, 2023

I was unable to backport this PR to "25-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/25-x-y and removed target/25-x-y PR should also be added to the "25-x-y" branch. labels May 2, 2023
@trop
Copy link
Contributor

trop bot commented May 2, 2023

@codebytere has manually backported this PR to "25-x-y", please check out #38148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/25-x-y PR was merged to the "25-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants