CPDFNamedAction.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // CPDFNamedAction.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/CPDFAction.h>
  13. typedef NS_ENUM(NSInteger, CPDFNamedActionName) {
  14. CPDFNamedActionNone = 0,
  15. CPDFNamedActionNextPage = 1,
  16. CPDFNamedActionPreviousPage = 2,
  17. CPDFNamedActionFirstPage = 3,
  18. CPDFNamedActionLastPage = 4,
  19. CPDFNamedActionPrint = 5
  20. };
  21. /**
  22. * CPDFNamedAction defines methods used to work with actions in PDF documents, some of which are named in the Adobe PDF Specification.
  23. *
  24. * @discussion A CPDFNamedAction object represents an action with a defined name.
  25. */
  26. @interface CPDFNamedAction : CPDFAction
  27. - (instancetype)initWithName:(CPDFNamedActionName)name NS_DESIGNATED_INITIALIZER;
  28. #pragma mark - Accessors
  29. /**
  30. * Returns the name of the named action.
  31. *
  32. * @see CPDFNamedActionName
  33. */
  34. - (CPDFNamedActionName)name;
  35. @end