Coordinate System

DynamicPDF Core Suite for .NET uses a points-based coordinate system. An inch equals 72 points, and a centimeter equals 28.35 points. Use the following values as a reference between measurements.

A page has a width, height, and four margins (top, bottom, left, right) specified as parameters in a Page constructor. Modify the dimensions through the page's Dimensions property. Specify the parameter values using predefined values from the PageSize and PageOrientation enumerations or specify custom width and height values.

Adding page elements to a page requires setting the page's coordinate properties. Measure these values from the upper left margin of the page. Measure the X properties from the left margin and the Y properties from the top margin.

Use the LayoutGrid page element to display a grid on a page which is useful when placing page elements.

Although you can swap width and height for landscape pages (792 width, 612 height), you can also use the PageOrientation.Landscape property to set a page's dimensions.

The following example illustrates using the Landscape property.

ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page(PageSize.Letter, PageOrientation.Landscape, 54.0f);
Dim MyPage As ceTe.DynamicPDF.Page = New ceTe.DynamicPDF.Page(PageSize.Letter, PageOrientation.Landscape, 54.0f)

In this topic