PDFImageSizeFit

public enum PDFImageSizeFit

Constants defining scaling behaviour of an image, if not enough space to render full size is given.

  • Scale the image to fit the available width, while keeping the aspect ratio

    Declaration

    Swift

    case width
  • Scale the image to fit the available height, while keeping the aspect ratio

    Declaration

    Swift

    case height
  • Scale the image to fit the available width or height, while keeping the aspect ratio

    Declaration

    Swift

    case widthHeight