PSPDFSaveViewController
Objective-C
@interface PSPDFSaveViewController
: PSPDFStaticTableViewController <PSPDFOverridable>
Swift
class SaveViewController : PDFStaticTableViewController, Overridable
The directory save view controller enables users to enter a custom file name and chose a directory to save a file to.
Internal callers might show a UIDocumentPickerViewController
if saveDirectories
contains
only Directory.documentPickerDirectory
, and it is selected when the done button is pressed.
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
-
Create a new directory save view controller instance with predefined save directories.
Declaration
Objective-C
- (nonnull instancetype)initWithSaveDirectories: (nonnull NSArray<PSPDFDirectory *> *)saveDirectories;
Swift
init(saveDirectories: [PSPDFDirectory])
Parameters
saveDirectories
Predefined save directories. Needs to have at least one item.
-
Set save directories.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<PSPDFDirectory *> *_Nonnull saveDirectories;
Swift
var saveDirectories: [PSPDFDirectory] { get }
-
The currently selected save directory. Will be set to the first entry of
saveDirectories
by default.Declaration
Objective-C
@property (nonatomic) PSPDFDirectory *_Nonnull selectedSaveDirectory;
Swift
var selectedSaveDirectory: PSPDFDirectory { get set }
-
The delegate to react to changes and to handle saving the file.
Declaration
Objective-C
@property (nonatomic, weak) id<PSPDFSaveViewControllerDelegate> _Nullable delegate;
Swift
weak var delegate: SaveViewControllerDelegate? { get set }
-
Shows a directory picker based on the set save directories. Defaults to YES.
Declaration
Objective-C
@property (nonatomic) BOOL showDirectoryPicker;
Swift
var showDirectoryPicker: Bool { get set }
-
The desired file name. Might not always be a valid file name (may have illegal characters).
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *fileName;
Swift
var fileName: String? { get set }
-
The resulting full path with the PDF extension. Considers the filename and selected directory. Will be
nil
, iffileName
is not a valid.Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *fullFilePath;
Swift
var fullFilePath: String? { get }