I am being required to create a workflow application were in the final output is a printout of the form with the image signatures of the approvers.
The images of the signatures are stored in a view and is retrieved based on the name of the approver. During the routing the image is inserted into a field.
Everything is completed except for the signatures in the printout. My problem now is in how to present this image in the printout. If I try to insert it into a field the table containing the field is resized to fit the image.
Now the powers that be want that the area for the signatures should always be the same size. The signatures should slightly overlap its assigned borders just like in a signed physical form.
Here’s what I’ve tried:
-
I used a layer with a signature image in it and positioned it on the print form. Printing the form does not print the image (a transparent image resource) in the layer. The position of the layer is not also where its supposed to be.
-
A layer with a field. The field contains the image signature. This resulted into the same thing. The layer was not where it was supposed to be. And the transparency was gone.
Any suggestions or alternatives would be a great help. Thank you very much!!!
Subject: Printing image signatures
Hihow about resize the image file?
probably you can change the scale of image files with java code like the following.
—import package
import java.awt.geom.AffineTransform;
—sample code
try{
image = ImageIO.read(new File(“input.jpg”));
}
catch (Exception e){
e.printStackTrace();
}
BufferedImage scaled = null;
double scalingFactor = 0.4; //to 40%
AffineTransform at = AffineTransform.getScaleInstance(scalingFactor,scalingFactor);
AffineTransformOp ap = new AffineTransformOp(at, null);
scaled = ap.filter(image, null);
try{
ImageIO.write(scaled, “jpg”, new File(“scales.jpg”));
}
catch (Exception e){
e.printStackTrace();
}
Subject: RE: Printing image signatures
Hmmm… so the image should be resized to fit the area assigned to it right? Should the image be on it’s own rich text field or just in a layer?
The powers that be want it to slightly overlap its borders to simulate a signed physical form.
And I forgot. The images of the signatures are stored in the database via an input form. So to add a signature… just copy the image and paste it on the rich text form. This is then retrieved based on the name of the approver.
Thanks be…
Subject: RE: Printing image signatures
Sorry, i didnt get your point…
how about placing a layer with table ON the richtext field?