expand to fit & centering page content on printed page XPS API

kasmer 66 Reputation points
2021-07-20T19:17:32.187+00:00

Hello,

I understand that working out where the page should sit on the page requires knowing the media size and the desired size of the printed page, then calculating what the margin will be; BUT I do not understand how to do this calculation for the desired margin so I am asking for clarification on how to apply centering through a calculated margin in both rotations of the page.

As of right now, this applies shrink to fit, but I also need to figure out expand to fit so I was wondering if anyone can provide insight how to do a calculation for expand to fit as well.

Thanks for any help, much is appreciated.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,613 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,723 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.