package pagesize

import "github.com/edragoev1/pdfjet/v9/src/pagesize"

Package pagesize defines the PageSize type, the width and height of a page in points. The Portrait and Landscape functions of the a3, a4, a5, b5, executive, legal, letter and tabloid packages return it.

Index

Types

type PageSize

type PageSize struct {
	// contains filtered or unexported fields
}

PageSize is the width and height of a page in points; 1 point is 1/72 inch. Its fields are unexported, so a page size cannot be changed once it is created. Use NewPageSize for a size that has no package.

func NewPageSize
func NewPageSize(width, height float32) PageSize

NewPageSize returns the page size with the specified width and height in points.

func (PageSize) GetHeight
func (pageSize PageSize) GetHeight() float32

GetHeight returns the height of the page in points.

func (PageSize) GetWidth
func (pageSize PageSize) GetWidth() float32

GetWidth returns the width of the page in points.