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: support fitToPageEnabled and scaleFactor #20436

Merged
merged 2 commits into from Oct 18, 2019
Merged

Conversation

Alecyrus
Copy link
Contributor

@Alecyrus Alecyrus commented Oct 5, 2019

Description of Change

Support fitToPageEnabled and scaleFactor in WebContents.printToPDF(), fix #20435

Checklist

Release Notes

notes: Added the support of fitToPageEnabled and scaleFactor in WebContents.printToPDF()

Support fitToPageEnabled and scaleFactor in  `WebContents.printToPDF()`
@welcome
Copy link

welcome bot commented Oct 5, 2019

💖 Thanks for opening this pull request! 💖

We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix.

Examples of commit messages with semantic prefixes:

  • fix: don't overwrite prevent_default if default wasn't prevented
  • feat: add app.isPackaged() method
  • docs: app.isDefaultProtocolClient is now available on Linux

Things that will help get your PR across the finish line:

  • Follow the JavaScript, C++, and Python coding style.
  • Run npm run lint locally to catch formatting errors earlier.
  • Document any user-facing changes you've made following the documentation styleguide.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Oct 5, 2019
@Alecyrus Alecyrus changed the title Feat: support fitToPageEnabled and scaleFactor feat: support fitToPageEnabled and scaleFactor Oct 5, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Oct 6, 2019
@zcbenz zcbenz merged commit 825e671 into electron:master Oct 18, 2019
@welcome
Copy link

welcome bot commented Oct 18, 2019

Congrats on merging your first pull request! 🎉🎉🎉

@release-clerk
Copy link

release-clerk bot commented Oct 18, 2019

Release Notes Persisted

Added the support of fitToPageEnabled and scaleFactor in WebContents.printToPDF()

@EcotechBrad
Copy link

It appears that support for fitToPageEnabled is not supported in the print method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please support fitToPageEnabled option in webContents.printToPDF()
4 participants