gdtiti / alivepdf

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

page class get w & get h ignores unit #197

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hey man there is the unit factor missing in these get methods.
You can see that if you choos Unit Point and print an object at xy 0,0
its not at the upper left corner.

You only get the right value if you choose unit MM than its the A4 height.
this will solve the problem.

public function get w ( ):Number 
{   
    return _w*_k;   
}

public function get h ( ):Number 
{
    return _h*_k;   
}

But anyways it seems that you start drawing from the lower left corner?
Is that right? If yes why?
And an other question :-)

I want to draw an image to the pdf which is inside an swf is that possible?

cheers Marcel

Original issue reported on code.google.com by JesperH...@googlemail.com on 23 Feb 2010 at 12:20