The postscript part was contributed by Carsten Hammer.

----- Original Message ----- 
From: "Daniel Frey" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 29, 2005 10:37 AM
Subject: [iText-questions] ImgPostscript defaults to 800x800


> Hello Paolo
>
> I am just looking why my postscript files are not placed correctly and met
> some lines which might be the reason for it. In ImgPostscript, method
> processParameters seems to set the height and width to 800, regardless of
> what was derived from the bounding box:
>
> 125  processParameters() throws BadElementException, IOException {
> ...
> 176    scaledHeight = (float) (bottom - top) / inch *1f;
> 177    scaledHeight=800;
> 178    setTop(scaledHeight);
> 179    scaledWidth = (float) (right - left) / inch * 1f;
> 180    scaledWidth=800;
> 181    setRight(scaledWidth);
>
>
> The correctly derived dimension is overwritten with a constant. This might
> be the reason why. If you agree, please corret it and we'll see if it
works.
>
> Thanks
> Daniel Frey
>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to