PSPDFSaveViewController


@interface PSPDFSaveViewController : PSPDFStaticTableViewController

The directory save view controller enables users to enter a custom file name and chose a directory to save a file to.

Will show a UIDocumentPickerViewController if saveDirectories contains PSPDFDirectory.documentPickerDirectory, and it is selected when the done button is pressed.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_DEFAULT_TABLEVIEWCONTROLLER_INIT_UNAVAILABLE
  • Unavailable

    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.

    Return Value

    A new directory save view controller instance.

  • Set save directories.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        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 (assign, readwrite, 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 (readwrite, nonatomic)
        id<PSPDFSaveViewControllerDelegate> _Nullable delegate;

    Swift

    weak var delegate: PSPDFSaveViewControllerDelegate? { get set }
  • Shows a directory picker based on the set save directories. Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, 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 (readwrite, copy, nonatomic, 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, if fileName is not a valid.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *fullFilePath;

    Swift

    var fullFilePath: String? { get }