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

feat: allow generating accessible pdf with printToPDF #39563

Merged
merged 2 commits into from Aug 24, 2023

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Aug 17, 2023

Description of Change

Refs https://bugs.chromium.org/p/chromium/issues/detail?id=1469961
Refs #39375.

Page.printToPDF now allows for experimentally generating tagged (accessible) PDFs. We needed to add the property to our implementation in the latest Chromium roll in order to fix compilation errors, but we should surface this new property to developers with a note about its experimental status.

Checklist

Release Notes

Notes: Added a generateTaggedPDF option to webContents.printToPDF to allow generating tagged (accessible) PDFs.

@codebytere codebytere added semver/minor backwards-compatible functionality no-backport labels Aug 17, 2023
@electron-cation electron-cation bot added api-review/requested 🗳 new-pr 🌱 PR opened in the last 24 hours labels Aug 17, 2023
@codebytere codebytere force-pushed the feat-generate-tagged-pdf branch 3 times, most recently from 8cde354 to bfb636e Compare August 17, 2023 17:04
@@ -25,7 +25,7 @@
"mocha": "^10.0.0",
"mocha-junit-reporter": "^1.18.0",
"mocha-multi-reporters": "^1.1.7",
"pdfjs-dist": "^2.2.228",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed to pull in getMarkInfo()

Copy link
Member

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@jkleinsc jkleinsc merged commit 2affecd into main Aug 24, 2023
16 checks passed
@jkleinsc jkleinsc deleted the feat-generate-tagged-pdf branch August 24, 2023 15:02
@release-clerk
Copy link

release-clerk bot commented Aug 24, 2023

Release Notes Persisted

Added a generateTaggedPDF option to webContents.printToPDF() to allow generating tagged (accessible) PDFs.

MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
* feat: allow generating accessible pdf with printToPDF

* docs: mark generateTaggedPDF experimental
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants