CPDFFreeTextAnnotation.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // CPDFFreeTextAnnotation.h
  3. // ComPDFKit
  4. //
  5. // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. #import <ComPDFKit/CPDFAnnotation.h>
  13. /**
  14. * A CPDFFreeTextAnnotation object displays text on a page.
  15. *
  16. * @discussion The CPDFAnnotation class’s contents and setContents: methods let you get and set the textual content for a CPDFFreeTextAnnotation object.
  17. */
  18. @interface CPDFFreeTextAnnotation : CPDFAnnotation
  19. /**
  20. * Method to get / set the font used for the annotation’s text field.
  21. */
  22. @property (nonatomic,retain) CPDFKitPlatformFont *font;
  23. /**
  24. * Method to get / set the font color used in the text field of the annotation.
  25. */
  26. @property (nonatomic,retain) CPDFKitPlatformColor *fontColor;
  27. /**
  28. * Method to get / set the horizontal alignment of text within the bounds of the annotation.
  29. *
  30. * @discussion Supported values are NSLeftTextAlignment, NSRightTextAlignment, and NSCenterTextAlignment.
  31. */
  32. @property (nonatomic,assign) NSTextAlignment alignment;
  33. @end