| de.intarsys.pdf.content.CSShapeDevice de.intarsys.pdf.content.common.CSBoundingBoxCollector
CSBoundingBoxCollector | public class CSBoundingBoxCollector extends CSShapeDevice (Code) | | Determine the bounding box of the content streams graphic primitives.
Usage
CSBoundingBoxCollector bbCollector = new CSBoundingBoxCollector();
CSDeviceBasedInterpreter interpreter = new CSDeviceBasedInterpreter(null, bbCollector);
interpreter.process(content, getResources());
if (bbCollector.getBoundingBox() != null) {
...
}
ATTENTION: The
CSBoundingBoxCollector does not take care of text yet !!
|
CSBoundingBoxCollector | public CSBoundingBoxCollector()(Code) | | |
addBoundingBox | protected void addBoundingBox(Rectangle2D rect, boolean addLineWidth)(Code) | | |
getBoundingBox | public Rectangle2D getBoundingBox()(Code) | | The bounding box containing all graphics artifacts stemming from
operations in the content stream processed.
The bounding box containing all graphics artifacts stemming fromoperations in the content stream processed. |
restoreState | public void restoreState()(Code) | | |
saveState | public void saveState()(Code) | | |
transform | public void transform(float a, float b, float c, float d, float e, float f)(Code) | | |
Methods inherited from de.intarsys.pdf.content.CSShapeDevice | protected void basicClip(Shape shape)(Code)(Java Doc) protected void basicDraw(Shape shape)(Code)(Java Doc) protected void basicFill(Shape shape)(Code)(Java Doc) protected GeneralPath getCurrentShape()(Code)(Java Doc) public void pathClipEvenOdd()(Code)(Java Doc) public void pathClipNonZero()(Code)(Java Doc) public void pathClose()(Code)(Java Doc) public void pathCloseFillStrokeEvenOdd()(Code)(Java Doc) public void pathCloseFillStrokeNonZero()(Code)(Java Doc) public void pathCloseStroke()(Code)(Java Doc) public void pathEnd()(Code)(Java Doc) public void pathFillEvenOdd()(Code)(Java Doc) public void pathFillNonZero()(Code)(Java Doc) public void pathFillStrokeEvenOdd()(Code)(Java Doc) public void pathFillStrokeNonZero()(Code)(Java Doc) public void pathStroke()(Code)(Java Doc) public void penCurveToC(float x1, float y1, float x2, float y2, float x3, float y3)(Code)(Java Doc) public void penCurveToV(float x2, float y2, float x3, float y3)(Code)(Java Doc) public void penCurveToY(float x1, float y1, float x3, float y3)(Code)(Java Doc) public void penLineTo(float x, float y)(Code)(Java Doc) public void penMoveTo(float x, float y)(Code)(Java Doc) public void penRectangle(float x, float y, float w, float h)(Code)(Java Doc) protected boolean privateClip()(Code)(Java Doc) protected void privateClosePath()(Code)(Java Doc)
|
|
|