Class PageLayout
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.params.htmltopdf.PageLayout
-
public class PageLayout extends Object
Class for specifying the layout of a page.
-
-
Constructor Summary
Constructors Constructor Description PageLayout()Constructor to initialize a default page layout.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetPageHeight()Returns the page height in inches.doublegetPageWidth()Returns the page width in inches.voidsetPageSize(double pageWidth, double pageHeight)Sets a custom page size.
-
-
-
Method Detail
-
setPageSize
public void setPageSize(double pageWidth, double pageHeight)Sets a custom page size.
Page size and orientation can also be set using paged media CSS which overrides the SDK Page Layout settings.- Parameters:
pageWidth- width of the page in inchespageHeight- height of the page in inches
-
getPageWidth
public double getPageWidth()
Returns the page width in inches.- Returns:
- page width in inches
-
getPageHeight
public double getPageHeight()
Returns the page height in inches.- Returns:
- page height in inches
-
-