Replace landscape option through orientation
This commit is contained in:
@@ -33,10 +33,14 @@
|
||||
NSString* jobName = spec[@"name"];
|
||||
long copies = MAX([spec[@"copies"] longValue], 1);
|
||||
|
||||
if ([spec[@"landscape"] boolValue])
|
||||
if ([spec[@"orientation"] isEqualToString:@"landscape"])
|
||||
{
|
||||
info.orientation = UIPrintInfoOrientationLandscape;
|
||||
}
|
||||
else if ([spec[@"orientation"] isEqualToString:@"portrait"])
|
||||
{
|
||||
info.orientation = UIPrintInfoOrientationPortrait;
|
||||
}
|
||||
|
||||
if ([spec[@"monochrome"] boolValue])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user