|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cete.dynamicpdf.AreaDimensions
com.cete.dynamicpdf.PageDimensions
com.cete.dynamicpdf.ExtendedPageDimensions
public class ExtendedPageDimensions
Class represents the extended dimensions of a page.
Licensing:
This class is a DynamicPDF Generator Community Edition feature.
| Constructor Summary | |
|---|---|
ExtendedPageDimensions(Dimensions edge,
Dimensions body)
Initializes a new instance of the ExtendedPageDimensions class. |
|
ExtendedPageDimensions(Dimensions edge,
Dimensions bleedBox,
Dimensions trimBox,
Dimensions body)
Initializes a new instance of the ExtendedPageDimensions class. |
|
ExtendedPageDimensions(Dimensions mediaBox,
Dimensions cropBox,
Dimensions bleedBox,
Dimensions trimBox,
Dimensions artBox)
Initializes a new instance of the ExtendedPageDimensions class. |
|
ExtendedPageDimensions(Dimensions mediaBox,
Dimensions cropBox,
Dimensions bleedBox,
Dimensions trimBox,
Dimensions artBox,
Dimensions body)
Initializes a new instance of the ExtendedPageDimensions class. |
|
| Method Summary | |
|---|---|
void |
draw(DocumentWriter writer)
Draws the page dimensions to the given DocumentWriter object. |
InheritableDimensions |
getArtBox()
Gets the art box dimensions of the page. |
InheritableDimensions |
getBleedBox()
Gets the bleed box dimensions of the page. |
InheritableDimensions |
getCropBox()
Gets the crop box dimensions of the page. |
Dimensions |
getMediaBox()
Gets the media box dimensions of the page. |
float |
getPdfY(float y)
Gets the translated PDF y coordinate. |
float |
getPdfY(float y,
RelativeTo relativeTo,
boolean ignoreMargins)
Gets the translated Y coordinate. |
InheritableDimensions |
getTrimBox()
Gets the trim box dimensions of the page. |
| Methods inherited from class com.cete.dynamicpdf.PageDimensions |
|---|
setMargins, setMargins, setMargins |
| Methods inherited from class com.cete.dynamicpdf.AreaDimensions |
|---|
getBody, getBottomMargin, getEdge, getHeight, getLeftMargin, getPdfX, getPdfX, getRightMargin, getTopMargin, getWidth, setBottomMargin, setHeight, setLeftMargin, setRightMargin, setTopMargin, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedPageDimensions(Dimensions edge,
Dimensions body)
ExtendedPageDimensions class.
edge - Edge dimensions of the page.body - Body dimensions of the page.ExtendedPageDimensions
public ExtendedPageDimensions(Dimensions mediaBox,
Dimensions cropBox,
Dimensions bleedBox,
Dimensions trimBox,
Dimensions artBox)
ExtendedPageDimensions class.
mediaBox - Media box dimensions of the page.cropBox - Crop box dimensions of the page.bleedBox - Bleed dimensions of the page.trimBox - Trim dimensions of the page.artBox - Art box dimensions of the page.ExtendedPageDimensions
public ExtendedPageDimensions(Dimensions edge,
Dimensions bleedBox,
Dimensions trimBox,
Dimensions body)
ExtendedPageDimensions class.
edge - Edge dimensions of the page.bleedBox - Bleed box dimensions of the page.trimBox - Trim box dimensions of the page.body - Body dimensions of the page.ExtendedPageDimensions
public ExtendedPageDimensions(Dimensions mediaBox,
Dimensions cropBox,
Dimensions bleedBox,
Dimensions trimBox,
Dimensions artBox,
Dimensions body)
ExtendedPageDimensions class.
mediaBox - Media box dimensions of the page.cropBox - Crop box dimensions of the page.bleedBox - Bleed dimensions of the page.trimBox - Trim dimensions of the page.artBox - Art box dimensions of the page.body - Body dimensions of the page.ExtendedPageDimensions| Method Detail |
|---|
public InheritableDimensions getCropBox()
getCropBox in class PageDimensionspublic Dimensions getMediaBox()
getMediaBox in class PageDimensionspublic InheritableDimensions getArtBox()
getArtBox in class PageDimensionspublic InheritableDimensions getBleedBox()
getBleedBox in class PageDimensionspublic InheritableDimensions getTrimBox()
getTrimBox in class PageDimensionspublic void draw(DocumentWriter writer)
DocumentWriter object.
draw in class PageDimensionswriter - DocumentWriter to receive the page dimensions output.DocumentWriterpublic float getPdfY(float y)
getPdfY in class PageDimensionsy - Y coordinate to translate.
public float getPdfY(float y,
RelativeTo relativeTo,
boolean ignoreMargins)
getPdfY in class PageDimensionsy - Y coordinate to translate.relativeTo - Placement of the page element on the pageignoreMargins - Setting false will consider the margin while placing the page element based on the RelativeTo property.
|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||