I used a similar fixed list approach like @spacecash21 suggested, based on this map:
https://en.wikipedia.org/wiki/Paper_size#/media/File:Prevalent_default_paper_size.svg
+ (NSString*)defaultPaperName
{
// as it looks mostly US and Canada and the Philippines are actually using the US Letter format, usage of the metric system is no clue
// https://en.wikipedia.org/wiki/Paper_size#/media/File:Prevalent_default_paper_size.svg
static NSSet* letterCountries;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
letterCountries = [NSSet setWithArray:@[@"US", @"CA", @"MX", @"CU", @"DO", @"GT", @"CR", @"SV", @"HN", @"BO", @"CO", @"VE", @"PH", @"CL"]];
});
NSString* countryCode = NSLocale.currentLocale.countryCode;
if ([letterCountries containsObject:countryCode.uppercaseString])
return @"na-letter";
return @"iso-a4";
}