> -----Original Message-----
> From: Travis Leippi [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 16:15
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] SetAbsolutePosition and ScaleToFit methods
> on Image Class
>
> Couple questions:
>
> Is there a reference point as to where position 0,0 is when it comes to
> using the SetAbsolutePosition? I am converting TIFF's to PDF's by using
>
It's always the bottom left corner.
> the sample code provided in the tutorials, I am also scaling this as well
> to fit with in a portrait letter page.
>
> The images are scaled fine, just that they are appearing in the low left
> hand corner. How do I make them display in the upper left hand corner?
>
That depends on page size. It will be:
y = page.top() - image.scaledHeight();
> Lastly, if you specify a width and height to ScaleToFit, does it apply the
> same scale percentage to both dimensions or will it result in an image
> that
> fits but different scale % applied to each dimension. Currently I have
>
Proportions will be maintained.
Best Regards,
Paulo Soares
> code that figures out the scale % and applies that but if this method
> provides equal % in each direction that I would like to eliminate the
> code.
>
> --Travis
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions