PTEPUBOutputOptions

@interface PTEPUBOutputOptions : NSObject

A class containing options common to ToEpub functions

  • Creates an EPUBOutputOptions object with default settings

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()
  • Create the EPUB in expanded format. Default is false.

    Declaration

    Objective-C

    - (void)SetExpanded:(BOOL)expanded;

    Swift

    func setExpanded(_ expanded: Bool)

    Parameters

    expanded

    if false a single EPUB file will be generated, otherwise, the generated EPUB will be in unzipped (expanded) format

  • Set whether the first content page in the EPUB uses the cover image or not. If this is set to true, then the first content page will simply wrap the cover image in HTML. Otherwise, the page will be converted the same as all other pages in the EPUB. Default is false.

    Declaration

    Objective-C

    - (void)SetReuseCover:(BOOL)reuse;

    Swift

    func setReuseCover(_ reuse: Bool)

    Parameters

    reuse

    if true the first page will simply be EPUB cover image, otherwise, the first page will be converted the same as the other pages