function IECalcPaperSize(const Width, Height : Double; Metric: Boolean) : TIOPDFPaperSize;
Description
Finds the largest paper type that will fit within the dimensions of Width and Height (specified in inches).
If Metric is true, the result will be one of: iepA0, iepA1, iepA2, iepA3, iepA4, iepA5, iepA6, iepB5. Otherwise it will be a US value from: iepLetter, iepLegal, iepTabloid
Result will be iepUnknown if the method fails.