CPDFWidgetAnnotation.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // CPDFWidgetAnnotation.h
  3. // ComPDFKit
  4. //
  5. // Copyright © 2014-2023 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 CPDFWidgetAnnotation object is a collection of fields for gathering information interactively from the user.
  15. */
  16. @interface CPDFWidgetAnnotation : CPDFAnnotation
  17. /**
  18. * Method to get / set the border color used for the form field.
  19. */
  20. @property (nonatomic,retain) CPDFKitPlatformColor *borderColor;
  21. /**
  22. * Method to ge t/ set the background color used for the form field.
  23. */
  24. @property (nonatomic,retain) CPDFKitPlatformColor *backgroundColor;
  25. @property (nonatomic,assign) CGFloat backgroundOpacity;
  26. /**
  27. * Method to get / set the font used for the form field.
  28. */
  29. @property (nonatomic,retain) CPDFKitPlatformFont *font;
  30. /**
  31. * Method to get / set the font color used for the form field.
  32. */
  33. @property (nonatomic,retain) CPDFKitPlatformColor *fontColor;
  34. /**
  35. * Internal name for the field.
  36. */
  37. - (NSString *)fieldName;
  38. - (void)setFieldName:(NSString *)name;
  39. - (void)reset;
  40. @end