Package com.itextpdf.text

Examples of com.itextpdf.text.Rectangle.normalize()


        if ( outRect.isEmpty() ) { // no intersection
            return null;
        }

        Rectangle output = new Rectangle((float) outRect.getX(), (float) outRect.getY(), (float) (outRect.getX() + outRect.getWidth()), (float) (outRect.getY() + outRect.getHeight()));
        output.normalize();
        return output;
    }

//  [U2] take care of empty pages
View Full Code Here


      PdfArray array = dict.getAsArray(PdfName.RECT);
      // Getting the position of the annotation
      Rectangle rect = new Rectangle(
          array.getAsNumber(0).floatValue(), array.getAsNumber(1).floatValue(),
          array.getAsNumber(2).floatValue(), array.getAsNumber(3).floatValue());
      rect.normalize();
      // A Do operator is forbidden inside a text block
      if (inText && !btWrite) {
        LOGGER.debug("Introducing extra ET");
        baos.write("ET\n".getBytes());
        etExtra = true;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.