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;
}