Bytescout.PDF for .NET |
Bytescout.PDF library for .NET
- setting page orientation for PDF document
Setting page orientation for PDF document
This example demonstrates how to set page orientation (portrait or landscape) for pages in PDF document generated using Bytescout.PDF library
using System; namespace HelloWorld // Add new document // Append new page to the document // Create new drawing // font size constant //Add standart font // Set Active Font // X position of the text to draw // Draw Text // Close drawing // Append new page to the document // Create new drawing // Set Active Font // X position of the text to draw // Draw Text // Close drawing // Save document // open generated PDF document in default PDF viewer installed
in Windows Download example source code: bytescoutpdf_page_orientation_portrait_landscape.zip (5 KB)
"Hello, World!" quick start step-by-step tutorials: |
|
|
||