I am having trouble with the last image of a number in a document occasionally 
being chopped off.


int BORDER_WIDTH = 10;

Image img = Image.getInstance(dataFile);

img.setAlignment(Image.ALIGN_CENTER);

float pageWidth = img.getScaledWidth();
float pageHeight = img.getScaledHeight();
Rectangle r = new Rectangle(pageWidth + BORDER_WIDTH, pageHeight + 
BORDER_HEIGHT);

document.setPageSize(r);

document.add(img);

This is done a number of times and inevitably one or more of the images - 
particularly the last one - are chopped off heightwise.

Suggestions are appreciated.

Thanks,

Steve

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to