View Model

  • Used to configure custom annotation groups for the annotation toolbar.

    [[PSPDFAnnotationToolbarConfiguration alloc] initWithAnnotationGroups:@[
        [PSPDFAnnotationGroup groupWithItems:@[
            [PSPDFAnnotationGroupItem itemWithType:PSPDFAnnotationStringInk variant:PSPDFAnnotationVariantStringInkPen configurationBlock:[PSPDFAnnotationGroupItem inkConfigurationBlock]]
        ]],
        [PSPDFAnnotationGroup groupWithItems:@[
            [PSPDFAnnotationGroupItem itemWithType:PSPDFAnnotationStringLine],
            [PSPDFAnnotationGroupItem itemWithType:PSPDFAnnotationStringPolyLine]
        ]],
    ]];
    
    See more

    Declaration

    Objective-C

    
    @interface PSPDFAnnotationGroup : PSPDFModel
  • An annotation group items defines one annotation type, optionally with a variant.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFAnnotationGroupItem : PSPDFModel
  • Specifies a list the toolbar annotation items and their grouping. The AnnotationToolbar accepts multiple configurations and will use the most matching one.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFAnnotationToolbarConfiguration : PSPDFModel

    Swift

    class AnnotationToolConfiguration : ModelObject
  • Model class used to define custom color presets.

    See

    PSPDFStyleManager
    See more

    Declaration

    Objective-C

    
    @interface PSPDFColorPreset : PSPDFModel <PSPDFStylePreset>

    Swift

    class ColorPreset : ModelObject, PSPDFStylePreset