AlivePDF icon indicating copy to clipboard operation
AlivePDF copied to clipboard

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

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

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 [email protected] on 4 Nov 2010 at 9:30

GoogleCodeExporter avatar Oct 22 '15 18:10 GoogleCodeExporter

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

Original comment by [email protected] on 4 Nov 2010 at 9:55

GoogleCodeExporter avatar Oct 22 '15 18:10 GoogleCodeExporter