expand to fit & centering page content on printed page XPS API
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.