Jeff-Lewis / alivepdf

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

Resize method of Page needs to set the _h property #119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create pdfdoc with units = points and create a  page 
2. use the resize property of the page to resize it to width and height of 
an image
3. add image at a specified X ,Y ,

What is the expected output? What do you see instead?
The image will be positioned correctly on X scale by the Y position will 
not be correct.  

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

Please provide any additional information below.
I think the resize method need the _w and _h because the addImageStream of 
the pdf.as use the h property of the page " (currentPage.h-(y+height))*k)"
public function resize ( width:Number, height:Number ):void 
{
    width = _w = _fwPt = wPt = width;
    height = _h= _fhPt = hPt = height;  
}

Original issue reported on code.google.com by AhmadHa...@gmail.com on 30 Apr 2009 at 3:34