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: PDF Header/Footer pages size #10100

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Jul 10, 2024

This PR intended to fix pdf footer problem reported at #10087

Background
PDF header/footer pages are separately generated from content page PDF. and merged with content pages.
And currently header/footer pages always using default Letter page size.
So when using custom page size. header/footer is displayed on wrong locations.

This PR change logics to use Content Page PDF's page size for header/footer page generation.

Test
I've confirmed it works as expected with following page sizes.

  • size: A4 portrait;
  • size: A4 landscape;
  • size: 460mm 220mm (Custom size)
  • size: 220mm 460mm (Custom size)

@yufeih yufeih added the bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note label Jul 10, 2024
Copy link
Contributor

@yufeih yufeih left a comment

Choose a reason for hiding this comment

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

Looks great!

@yufeih yufeih merged commit 5c7f902 into dotnet:main Jul 10, 2024
7 checks passed
@filzrev filzrev deleted the fix-pdf-headerfooter-pagesize branch July 10, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants