sivarajankumar / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

addImage cuts off the image if it does not fit in page #312

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hi,

i want to print to pdf through flex.
alive pdf does this but i am printing a vbox to pdf if the height of vbox is 
more than A4 size it cuts off the content and doesn't add new page.

i tried adding a new page but it doesn't do the needfull it gets added as a 
blank page. :(

please help
its vey urgent 

thanks in advance.

Original issue reported on code.google.com by gauri2...@gmail.com on 21 Apr 2011 at 6:03

GoogleCodeExporter commented 8 years ago
I am facing the same problem. Any solutions?

Original comment by alaa.elm...@gmail.com on 12 Jul 2011 at 2:41

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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