PSPDFNewPageConfigurationBuilder

Objective-C


@interface PSPDFNewPageConfigurationBuilder : PSPDFModel

Swift

class NewPageConfigurationBuilder : ModelObject

Undocumented

  • The page size. This is CGSizeZero by default - the size of the first page in the resulting document will be used.

    Declaration

    Objective-C

    @property (nonatomic) CGSize pageSize;

    Swift

    var pageSize: CGSize { get set }
  • Can only be 0, 90, 180 or 270. This is 0 by default.

    Declaration

    Objective-C

    @property (nonatomic) PSPDFRotation pageRotation;

    Swift

    var pageRotation: Rotation { get set }
  • The background color. If nil, the PDF page will not have a background color specified.

    Declaration

    Objective-C

    @property (nonatomic, nullable) UIColor *backgroundColor;

    Swift

    var backgroundColor: UIColor? { get set }
  • Add a image or PDF file to the page.

    Declaration

    Objective-C

    @property (nonatomic, nullable) PSPDFProcessorItem *item;

    Swift

    var item: ProcessorItem? { get set }
  • Allows you to specify page margins. This allows you to align items around the page margins instead of the edge of the document.

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets pageMargins;

    Swift

    var pageMargins: UIEdgeInsets { get set }