Hi,
Please try to use the following code:
Code: C#
//Your original code to change page size
page.Size = new_size...
//This line is important
page.CropBox = page.MediaBox;
A PDF page has two important values that are related to size: media box and crop box. Media box defines the overall "paper size" and crop box defines what's visible. Currently setting PdfPage's Size property only changes MediaBox. We will look into it and see if we can automatically update crop box as well.
Additionally, your page has a black background. This background is part of the page contents ---- so once you extend the page size, the content will not be extended and you will see the extended portion has a white background. So you may need to have some other measures to address that.
Thanks!