kpuchalski / alivepdf

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

Setting Application style "direction" to RTL causes pdf to appear in mirror view #285

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. setStyle("direction","rtl")
2. var myPDF:PDF = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.A4);
3. myPDF.setDisplayMode(Display.FULL_WIDTH); 
4. myPDF.addPage();
5.myPDF.addImage(this,0,0,0,0,ImageFormat.PNG,100,1,ResizeMode.FIT_TO_PAGE);var 
bytes:ByteArray = new ByteArray();
                bytes = myPDF.save(Method.LOCAL);
                var f:FileReference = new FileReference();

f.save(bytes,"myFile.pdf");;

What is the expected output? What do you see instead?
Expect to see PNG of screen - instead I see PNG of mirror image

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

Please provide any additional information below.

Original issue reported on code.google.com by mbmay...@gmail.com on 4 Nov 2010 at 9:30

GoogleCodeExporter commented 9 years ago
Workaround:
if(RTL)
{
   this.x = this.width;
   this.scaleX = (-1)
}
and only then:
myPDF.addImage(...etc)

Original comment by mbmay...@gmail.com on 4 Nov 2010 at 9:55