CPDFGoToAction.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // CPDFGoToAction.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. @class CPDFDestination;
  14. /**
  15. * CPDFGoToAction, a subclass of CPDFAction, defines methods for getting and setting the destination of a go-to action.
  16. *
  17. * @discussion A CPDFGoToAction object represents the action of going to a specific location within the PDF document.
  18. */
  19. @interface CPDFGoToAction : CPDFAction
  20. #pragma mark - Initializers
  21. /**
  22. * Initializes the go-to action.
  23. *
  24. * @param destination The destination with which to initialize the go-to action.
  25. */
  26. - (instancetype)initWithDestination:(CPDFDestination *)destination NS_DESIGNATED_INITIALIZER;
  27. #pragma mark - Accessors
  28. /**
  29. * Returns the destination associated with the action.
  30. */
  31. - (CPDFDestination *)destination;
  32. @end