|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpedal.objects.PdfPageData
public class PdfPageData
store data relating to page sizes set in PDF (MediaBox, CropBox, rotation)
| Constructor Summary | |
|---|---|
PdfPageData()
|
|
| Method Summary | |
|---|---|
void |
checkSizeSet(int pageNumber)
make sure a value set for crop and media box (used internally to trap 'odd' settings and insure setup correctly) |
int |
getCropBoxHeight(int pageNumber)
return cropBox height |
int |
getCropBoxWidth(int pageNumber)
return cropBox width |
int |
getCropBoxX(int pageNumber)
return x value for cropBox |
int |
getCropBoxY(int pageNumber)
return y value for cropox |
java.lang.String |
getCropValue(int currentPage)
return cropBox string found in PDF file |
int |
getMediaBoxHeight(int pageNumber)
return height of mediaBox |
int |
getMediaBoxWidth(int pageNumber)
return width of media box |
int |
getMediaBoxX(int pageNumber)
return mediaBox x value |
int |
getMediaBoxY(int pageNumber)
return mediaBox y value |
java.lang.String |
getMediaValue(int currentPage)
return mediaBox string found in PDF file |
int |
getRotation(int pageNumber)
return rotation value (for outside class) |
int |
getScaledCropBoxHeight(int pageNumber)
return Scaled cropBox height |
int |
getScaledCropBoxWidth(int pageNumber)
return Scaled cropBox width |
int |
getScaledCropBoxX(int pageNumber)
return Scaled x value for cropBox |
int |
getScaledCropBoxY(int pageNumber)
return Scaled y value for cropox |
int |
getScaledMediaBoxHeight(int pageNumber)
return Scaled height of mediaBox |
int |
getScaledMediaBoxWidth(int pageNumber)
return Scaled width of media box |
int |
getScaledMediaBoxX(int pageNumber)
return Scaled mediaBox x value |
int |
getScaledMediaBoxY(int pageNumber)
return Scaled mediaBox y value |
float |
getScalingValue()
Get the scaling value currently being used |
void |
setCropBox(float[] cropBox)
set crop with values and align with media box |
void |
setMediaBox(float[] mediaBox)
set string with raw values and assign values to crop and media size |
int |
setPageRotation(int value,
int pageNumber)
|
void |
setScalingValue(float scalingValue)
Scaling value to apply to all values |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PdfPageData()
| Method Detail |
|---|
public void checkSizeSet(int pageNumber)
public final int getMediaBoxHeight(int pageNumber)
public final int getMediaBoxY(int pageNumber)
public final int getMediaBoxX(int pageNumber)
public void setMediaBox(float[] mediaBox)
public void setCropBox(float[] cropBox)
public int setPageRotation(int value,
int pageNumber)
public final int getMediaBoxWidth(int pageNumber)
public java.lang.String getMediaValue(int currentPage)
public java.lang.String getCropValue(int currentPage)
public int getScaledCropBoxX(int pageNumber)
public int getScaledCropBoxWidth(int pageNumber)
public int getScaledCropBoxY(int pageNumber)
public int getScaledCropBoxHeight(int pageNumber)
public int getCropBoxX(int pageNumber)
public int getCropBoxWidth(int pageNumber)
public int getCropBoxY(int pageNumber)
public int getCropBoxHeight(int pageNumber)
public float getScalingValue()
public void setScalingValue(float scalingValue)
public final int getRotation(int pageNumber)
public final int getScaledMediaBoxHeight(int pageNumber)
public final int getScaledMediaBoxWidth(int pageNumber)
public final int getScaledMediaBoxX(int pageNumber)
public final int getScaledMediaBoxY(int pageNumber)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||