BitMiracle.Tiff2Pdf.Program.tiff2pdf_match_paper_size C# (CSharp) Method

tiff2pdf_match_paper_size() static private method

static private tiff2pdf_match_paper_size ( float &width, float &length, string papersize ) : bool
width float
length float
papersize string
return bool
        static bool tiff2pdf_match_paper_size(out float width, out float length, string papersize)
        {
            width = 0;
            length = 0;

            string papersizeUpper = papersize.ToUpper(CultureInfo.InvariantCulture);
            for (int i = 0; sizes[i] != null; i++)
            {
                if (papersizeUpper == sizes[i])
                {
                    width = (float)widths[i];
                    length = (float)lengths[i];
                    return true;
                }
            }

            return false;
        }