SBSDKPDFRendererPageSize

enum SBSDKPDFRendererPageSize {}

Specifies the desired page size (media box size) for PDF rendering operations.

  • Each page is as large as its image at 72 dpi.

    Declaration

    Objective-C

    SBSDKPDFRendererPageSizeFromImage

    Swift

    case fromImage = 0
  • The page has the aspect ratio of the image, but is fitted into A4 size. Whether portrait or landscape depends on the images aspect ratio.

    Declaration

    Objective-C

    SBSDKPDFRendererPageSizeA4

    Swift

    case A4 = 1
  • The page has A4 size. The image is fitted and centered within the page. Whether portrait or landscape depends on the images aspect ratio.

    Declaration

    Objective-C

    SBSDKPDFRendererPageSizeFixedA4

    Swift

    case fixedA4 = 2
  • The page has the aspect ratio of the image, but is fitted into US letter size. Whether portrait or landscape depends on the images aspect ratio.

    Declaration

    Objective-C

    SBSDKPDFRendererPageSizeUSLetter

    Swift

    case usLetter = 3
  • The page has US letter size. The image is fitted and centered within the page. Whether portrait or landscape depends on the images aspect ratio.

    Declaration

    Objective-C

    SBSDKPDFRendererPageSizeFixedUSLetter

    Swift

    case fixedUSLetter = 4
  • Each page of the result PDF will be of US letter or A4 size depending on the current locale. Whether portrait or landscape depends on the images aspect ratio.

    Declaration

    Objective-C

    SBSDKPDFRendererPageSizeAutoLocale

    Swift

    case autoLocale = 5
  • For each page the best matching format (A4 or US letter) is used. Whether portrait or landscape depends on the images aspect ratio.

    Declaration

    Objective-C

    SBSDKPDFRendererPageSizeAuto

    Swift

    case auto = 6