List of usage examples for org.apache.pdfbox.pdmodel.common PDRectangle getLowerLeftY
public float getLowerLeftY()
From source file:vortext.TextHighlight.java
License:Apache License
/** * Computes a float array of size eight with all the vertices of the * PDRectangle//from w w w .j a v a 2 s . com */ public float[] getQuads(final PDRectangle rect) { final float[] quads = new float[8]; // top left quads[0] = rect.getLowerLeftX(); // x1 quads[1] = rect.getUpperRightY(); // y1 // bottom left quads[2] = rect.getUpperRightX(); // x2 quads[3] = quads[1]; // y2 // top right quads[4] = quads[0]; // x3 quads[5] = rect.getLowerLeftY(); // y3 // bottom right quads[6] = quads[2]; // x4 quads[7] = quads[5]; // y5 return quads; }