Uses of Class
com.pd4ml.PageMargins
-
Packages that use PageMargins Package Description com.pd4ml -
-
Uses of PageMargins in com.pd4ml
Fields in com.pd4ml declared as PageMargins Modifier and Type Field Description static PageMarginsPageMargins. DEFAULT_PAGE_MARGINSThe default margins for PDF, RTF and DOCX output: 10 mm on each side.Methods in com.pd4ml that return PageMargins Modifier and Type Method Description PageMarginsPageMargins. flipHorizontal()Returns a copy with the left and right margins swapped, for example for the facing pages of a book.PageMarginsPageMargins. flipVertical()Returns a copy with the top and bottom margins swapped.PageMarginsPD4ML. getPageMargins(int pageNum, boolean imageGeneration)Returns the margins of a page, as determined by the defaults,setPageMargins(...)calls and, afterreadHTML(...), CSS@pagerules of the document.PageMarginsPageMargins. rotate()Returns a copy rotated by 90 degrees, matching a page rotated withPageSize.rotate(): the new left margin is the old top margin, the new top is the old right, and so on.Methods in com.pd4ml with parameters of type PageMargins Modifier and Type Method Description static intPD4ML. predictPageHeight(PageMargins pageMargins, PageSize pageSize, int userSpace)Calculates how many HTML pixels of content fit on one page for the given settings: the printable page height (page height minus top and bottom margins) divided by the scale factor fromPD4ML.predictScale(PageMargins, PageSize, int).static floatPD4ML. predictScale(PageMargins pageMargins, PageSize pageSize, int userSpace)Calculates the scale factor from HTML pixels to PDF points for the given settings: the printable page width (page width minus left and right margins) divided by the HTML width.voidPD4ML. setPageMargins(PageMargins margins)Sets the page margins for all pages.voidPD4ML. setPageMargins(PageMargins margins, java.lang.String scope)Sets the page margins for the selected pages.
-