/** * Set visible signature designer for an existing signature field. * * @param zoomPercent increase (positive value) or decrease (negative value) image with x percent. * @param imageStream input stream of an image. * @throws IOException */ public void setVisibleSignDesigner(int zoomPercent, InputStream imageStream) throws IOException { visibleSignDesigner = new PDVisibleSignDesigner(imageStream); visibleSignDesigner.zoom(zoomPercent); }
/** * Set visible signature designer for a new signature field. * * @param filename * @param x position of the signature field * @param y position of the signature field * @param zoomPercent increase (positive value) or decrease (negative value) image with x percent. * @param imageStream input stream of an image. * @param page the signature should be placed on * @throws IOException */ public void setVisibleSignDesigner(String filename, int x, int y, int zoomPercent, InputStream imageStream, int page) throws IOException { visibleSignDesigner = new PDVisibleSignDesigner(filename, imageStream, page); visibleSignDesigner.xAxis(x).yAxis(y).zoom(zoomPercent).adjustForRotation(); }
/** * Set visible signature designer for an existing signature field. * * @param zoomPercent increase (positive value) or decrease (negative value) image with x percent. * @param imageStream input stream of an image. * @throws IOException */ public void setVisibleSignDesigner(int zoomPercent, InputStream imageStream) throws IOException { visibleSignDesigner = new PDVisibleSignDesigner(imageStream); visibleSignDesigner.zoom(zoomPercent); }
/** * Set visible signature designer for a new signature field. * * @param filename * @param x position of the signature field * @param y position of the signature field * @param zoomPercent increase (positive value) or decrease (negative value) image with x percent. * @param imageStream input stream of an image. * @param page the signature should be placed on * @throws IOException */ public void setVisibleSignDesigner(String filename, int x, int y, int zoomPercent, InputStream imageStream, int page) throws IOException { visibleSignDesigner = new PDVisibleSignDesigner(filename, imageStream, page); visibleSignDesigner.xAxis(x).yAxis(y).zoom(zoomPercent).adjustForRotation(); }