I'm trying to learn the shortest possible path to draw a JPG image using the stamper.  I need a method like this:
 
public void drawMyImage (PdfStamper stamper, String imageFileName, PdfRectangle rect, float quality) {
 
    // ???
 
}
 
The imageFileName represents a high-resolution JPG on disk.  It is usually a very large image (1000x1000 or more).  It will be drawn into a relatively small space on the PDF, like 2x2 inches.
 
I want to draw the image on the over content using the position and size of the rectangle at the specified quality (0 to 1).  The image in the PDF should be decoded with the DCTDecode filter.  I've tried several variations, and all I get is a white rectangle (without the image).
 
Help?  Thanks.
 
David
 
 
 

Reply via email to