Skip to content

Add missing unit specification to PdfPage.Size property documentation#2500

Merged
alvinashcraft merged 4 commits intodocsfrom
copilot/fix-2122
Aug 5, 2025
Merged

Add missing unit specification to PdfPage.Size property documentation#2500
alvinashcraft merged 4 commits intodocsfrom
copilot/fix-2122

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Aug 5, 2025

The documentation for PdfPage.Size property was missing the unit specification, which made it unclear what units the size values represent. This property returns a Windows.Foundation.Size object containing width and height values, but the documentation didn't specify that these are measured in device-independent pixels (DIPs).

Updated the description to clarify that the size is returned "in device-independent pixels (DIPs)", making it consistent with related properties in the same namespace like PdfPageRenderOptions.DestinationHeight and PdfPageRenderOptions.DestinationWidth, which already specify their units as DIPs.

The change is minimal and follows the established documentation pattern within the Windows.Data.Pdf namespace.

Fixes #2122.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@prmerger-automator prmerger-automator Bot added the do-not-merge PR is being processed and awaiting review/approval. label Aug 5, 2025
@alvinashcraft alvinashcraft self-requested a review August 5, 2025 18:48
Co-authored-by: alvinashcraft <73072+alvinashcraft@users.noreply.github.com>
Copilot AI changed the title [WIP] Unit of size is missing Add missing unit specification to PdfPage.Size property documentation Aug 5, 2025
Comment thread windows.data.pdf/pdfpage_size.md
@alvinashcraft alvinashcraft marked this pull request as ready for review August 5, 2025 20:08
@alvinashcraft alvinashcraft requested a review from Copilot August 5, 2025 20:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the documentation clarity for the PdfPage.Size property by adding missing unit specification. The change addresses an issue where developers couldn't determine what units the size values represent.

  • Added "in device-independent pixels (DIPs) for height and width" to the description
  • Maintains consistency with related properties in the Windows.Data.Pdf namespace

Comment thread windows.data.pdf/pdfpage_size.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@alvinashcraft alvinashcraft merged commit 11fdbfe into docs Aug 5, 2025
1 check passed
@alvinashcraft alvinashcraft deleted the copilot/fix-2122 branch August 5, 2025 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge PR is being processed and awaiting review/approval. review-team-triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit of size is missing

3 participants