Title: RE: [iText-questions] BUG founded in TiffImage

Thank you. Bug noted and corrected.

Best Regards,

Paulo Soares

    -----Original Message-----

    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Huttin Pierre

    Sent:   Wednesday, February 18, 2004 15:26

    To:     [EMAIL PROTECTED]

    Subject:        [iText-questions] BUG founded in TiffImage

    Hello,

     

    I just found a bug in com.lowagie.text.pdf.codec.TiffImage class at line 307, it was write dpiX instead of dpiY

     

    /*306*/            dpiX = getDpi(dir.getField(TIFFConstants.TIFFTAG_XRESOLUTION), resolutionUnit);

    /*307*/            dpiX = getDpi(dir.getField(TIFFConstants.TIFFTAG_YRESOLUTION), resolutionUnit);

    /*308*/            int rowsStrip = (int)dir.getFieldAsLong(TIFFConstants.TIFFTAG_ROWSPERSTRIP);

     

    Correction is

     

    /*306*/            dpiX = getDpi(dir.getField(TIFFConstants.TIFFTAG_XRESOLUTION), resolutionUnit);

    /*307*/            dpiY = getDpi(dir.getField(TIFFConstants.TIFFTAG_YRESOLUTION), resolutionUnit);

    /*308*/            int rowsStrip = (int)dir.getFieldAsLong(TIFFConstants.TIFFTAG_ROWSPERSTRIP);

     

    thanks

     

     

    ---

    HUTTIN Pierre

    OMNIS ECM Services

    81 route de Luxembourg

    L-4391 PONTPIERRE

    tel : (+352) 29 14 11 1

    fax : (+352) 29 14 11 650

    url : <http://www.ecm.lu/>

     



    **********************************************************************
    This email and any files transmitted with it are confidential and
    intended solely for the use of the individual or entity to whom they
    are addressed. If you have received this email in error please notify
    the security manager at [EMAIL PROTECTED]
    This footnote also confirms that this email message has been swept by
    the SOFITEC C.A.T.S. systems for the presence of computer viruses.

    For more information about C.A.T.S. please check
    http://www.sofitec.lu
    **********************************************************************

Reply via email to