When creating PDF pages programmatically with DsPdf, you can specify the page size and orientation (portrait/landscape) for each page.

DsPdf is compatible with .NET 6 or later, .NET Core 2.0 or later, .NET Standard 2.x, .NET Framework 4.6.1 or later. All features are supported on Windows, macOS and Linux.