Portrait & Landscape Orientation

Page orientation and rotation can sometimes be confused, as they could visually appear similar when dealing with a 90-degree rotation and landscape orientation.

Page orientation specifically refers to how a page is initially laid out, with two options: vertically (portrait) or horizontally (landscape).

Page rotation, on the other hand, involves adjusting the angle of a page, allowing you to change its orientation as needed. This is useful for correcting alignment or meeting specific viewing preferences. Page angles can typically be set at 90, 180, or 270 degrees.

Page orientation can be configured during the rendering process when converting from HTML string, file, or web URL to PDF. However, it is not possible to change the page orientation in an existing PDF document. In contrast, rotation can be applied to an existing PDF document but cannot be adjusted during the rendering process.