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

fix: printToPDF default margins #36060

Merged
merged 3 commits into from Oct 19, 2022
Merged

fix: printToPDF default margins #36060

merged 3 commits into from Oct 19, 2022

Conversation

Yusoo
Copy link
Contributor

@Yusoo Yusoo commented Oct 18, 2022

Description of Change

In the document webContents.printToPDF has a default value of 1cm for the margins, however it does not.

Release Notes

Notes: default margin has been added in the code.

The document printToPDF has a 1cm margin and this default value has been added in the code.
@welcome
Copy link

welcome bot commented Oct 18, 2022

💖 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 18, 2022
@Yusoo Yusoo changed the title printToPDF default margins fix: printToPDF default margins Oct 18, 2022
@codebytere codebytere added semver/patch backwards-compatible bug fixes target/20-x-y target/21-x-y PR should also be added to the "21-x-y" branch. target/22-x-y PR should also be added to the "22-x-y" branch. labels Oct 18, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Oct 19, 2022
@codebytere codebytere merged commit dde513b into electron:main Oct 19, 2022
@welcome
Copy link

welcome bot commented Oct 19, 2022

Congrats on merging your first pull request! 🎉🎉🎉

@release-clerk
Copy link

release-clerk bot commented Oct 19, 2022

Release Notes Persisted

default margin has been added in the code.

@trop
Copy link
Contributor

trop bot commented Oct 19, 2022

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

trop bot added a commit that referenced this pull request Oct 19, 2022
printToPDF default margins

The document printToPDF has a 1cm margin and this default value has been added in the code.

Co-authored-by: Yusoo <Yusoo@users.noreply.github.com>
@trop trop bot mentioned this pull request Oct 19, 2022
trop bot added a commit that referenced this pull request Oct 19, 2022
printToPDF default margins

The document printToPDF has a 1cm margin and this default value has been added in the code.

Co-authored-by: Yusoo <Yusoo@users.noreply.github.com>
@trop trop bot mentioned this pull request Oct 19, 2022
@trop
Copy link
Contributor

trop bot commented Oct 19, 2022

I have automatically backported this PR to "21-x-y", please check out #36072

@trop trop bot added in-flight/21-x-y and removed target/21-x-y PR should also be added to the "21-x-y" branch. labels Oct 19, 2022
@trop
Copy link
Contributor

trop bot commented Oct 19, 2022

I have automatically backported this PR to "22-x-y", please check out #36073

@trop trop bot added in-flight/22-x-y and removed target/22-x-y PR should also be added to the "22-x-y" branch. labels Oct 19, 2022
@Yusoo Yusoo deleted the patch-1 branch October 20, 2022 01:14
@trop trop bot added the merged/22-x-y PR was merged to the "22-x-y" branch. label Oct 20, 2022
@trop trop bot removed the in-flight/22-x-y label Oct 20, 2022
jkleinsc pushed a commit that referenced this pull request Oct 20, 2022
fix: printToPDF default margins (#36060)

printToPDF default margins

The document printToPDF has a 1cm margin and this default value has been added in the code.

Co-authored-by: Yusoo <Yusoo@users.noreply.github.com>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Yusoo <Yusoo@users.noreply.github.com>
@trop trop bot added merged/21-x-y PR was merged to the "21-x-y" branch. and removed in-flight/21-x-y labels Oct 20, 2022
jkleinsc pushed a commit that referenced this pull request Oct 20, 2022
fix: printToPDF default margins (#36060)

printToPDF default margins

The document printToPDF has a 1cm margin and this default value has been added in the code.

Co-authored-by: Yusoo <Yusoo@users.noreply.github.com>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Yusoo <Yusoo@users.noreply.github.com>
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
printToPDF default margins

The document printToPDF has a 1cm margin and this default value has been added in the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/21-x-y PR was merged to the "21-x-y" branch. merged/22-x-y PR was merged to the "22-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants