sivarajankumar / alivepdf

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

function addImage(...) has width and height reversed #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create simple example which redrers component into PDF

var myPDF:PDF = new PDF(  Orientation.LANDSCAPE, Unit.MM, Size.LETTER);
myPDF.setDisplayMode ( Display.DEFAULT);
myPDF.addPage();
myPDF.setMargins(10,10,10,10); // Margins not working
// using width and height to emulate margins.
myPDF.addImage(objectReference, 10,10,260,195, ImageFormat.JPG, 100,
1,ResizeMode.NONE,"Normal",false);

What is the expected output? What do you see instead?
In landscape mode image rendered is very tall, swapping width and height
fixing the problem.

What version of the product are you using? On what operating system?
0.1.4.5

Original issue reported on code.google.com by lytvyn...@gmail.com on 29 Sep 2008 at 8:28

GoogleCodeExporter commented 8 years ago
Hi lytvynyuk,

Thanks ! This is a bug, and has been fixed in release 0.1.4.6 :)

Thibault

Original comment by thibault.imbert on 29 Sep 2008 at 8:56

GoogleCodeExporter commented 8 years ago
Great, lets close this issue!

Original comment by lytvyn...@gmail.com on 30 Sep 2008 at 2:15