Replace landscape option through orientation

This commit is contained in:
Sebastián Katzer
2019-02-13 11:59:00 +01:00
parent b6683840ca
commit fa00761d3c
4 changed files with 46 additions and 24 deletions

View File

@@ -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])
{