Open GoogleCodeExporter opened 9 years ago
I am facing the same problem. Any solutions?
Original comment by alaa.elm...@gmail.com
on 12 Jul 2011 at 2:41
Hi,
Use below code, hope it will help you.
myPDF.addImage(img.content, new Resize ( Mode.FIT_TO_PAGE, Position.CENTERED ));
Thanks,
Ravi
Original comment by ravichandran96@gmail.com
on 7 Sep 2011 at 11:28
Thank you for the answer! I was having the same problem and now I managed to
resize my image.
Original comment by vamapa...@gmail.com
on 25 Feb 2012 at 8:06
The solution provided by ravichandran96 only works if the image you are trying
to add is the only content on that page. In my case, the image is positioned at
the bottom half of the page since the upper half has other content (e.g. grids,
image and text). So, I need the rather long image to start at the bottom half
and continue, if needed, on subsequent pages.
Again, this is still an issue.
Original comment by alaa.elm...@gmail.com
on 10 May 2012 at 3:10
Original issue reported on code.google.com by
gauri2...@gmail.com
on 21 Apr 2011 at 6:03