79529811

Date: 2025-03-23 22:42:12
Score: 2
Natty:
Report link

It's possible.

You can refer to the following URL to change the paper size for Microsoft Print to PDF:

https://franklinheath.co.uk/2015/08/29/custom-page-sizes-for-microsoft-print-to-pdf/

You can dynamically create a paper size using Python, then retrieve the index number of the created paper size and set it to pageSetup.paperSize.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 이대윤