Method from org.apache.pdfbox.pdmodel.interactive.measurement.PDViewportDictionary Detail: |
public PDRectangle getBBox() {
COSArray bbox = (COSArray)this.getDictionary().getDictionaryObject("BBox");
if (bbox != null)
{
return new PDRectangle(bbox);
}
return null;
}
This will retrieve the rectangle specifying the location of the viewport. |
public COSBase getCOSObject() {
return this.viewportDictionary;
}
|
public COSDictionary getDictionary() {
return this.viewportDictionary;
}
This will return the corresponding dictionary. |
public PDMeasureDictionary getMeasure() {
COSDictionary measure = (COSDictionary)this.getDictionary().getDictionaryObject("Measure");
if (measure != null)
{
return new PDMeasureDictionary(measure);
}
return null;
}
This will retrieve the measure dictionary. |
public String getName() {
return this.getDictionary().getNameAsString(COSName.NAME);
}
This will retrieve the name of the viewport. |
public String getType() {
return TYPE;
}
Returns the type of the viewport dictionary.
It must be "Viewport" |
public void setBBox(PDRectangle rectangle) {
this.getDictionary().setItem("BBox", rectangle);
}
This will set the rectangle specifying the location of the viewport. |
public void setMeasure(PDMeasureDictionary measure) {
this.getDictionary().setItem("Measure", measure);
}
This will set the measure dictionary. |
public void setName(String name) {
this.getDictionary().setName(COSName.NAME, name);
}
This will set the name of the viewport. |