Category / Section
How do I set the document page size?
1 min read
The section.PageSetup.PageSize property is used to set the custom document page size.
C#
// Set the document page size.
section.PageSetup.PageSize = new SizeF( 550, 300 );
VB
' Set the document page size.
section.PageSetup.PageSize = New SizeF(550, 300)
Here is the sample.