Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Set up PDF page in C# and VB.NET

This sample shows how to set up a page size, orientation, and rotation using Docotic.Pdf library.

Description

You can specify the size of any page in pixels using the PdfPage.Width and PdfPage.Height properties. Or use PdfPage.Size property to specify the size using a value from the PdfPaperSize enumeration. This enumeration defines a lot of predefined paper formats like A4, Letter or Envelope.

To change the orientation of a page to portrait or landscape, use the PdfPage.Orientation property. You can specify a rotation for a page using the PdfPage.Rotation property. Rotation can be 90, 180, or 270 degrees in the clockwise direction.

See also